[Olsr-users] How to define the primary IP-Address of an Interface
Michael Rack
(spam-protected)
Tue Oct 18 14:40:02 CEST 2011
Hi Michel,
sorry, but that is not that what i asked for :)
So get deeper into the configuration. My VLAN1-Interface:
> peer-18273 ~ # ip addr show dev vlan1
> 11: (spam-protected): <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> noqueue state UP
> link/ether 00:50:bf:91:23:d0 brd ff:ff:ff:ff:ff:ff
> inet 172.16.2.25/29 brd 172.16.2.31 scope global vlan1
> inet 91.205.xxx.xxx/32 brd 255.255.255.255 scope global vlan1
> inet6 fe80::250:bfff:fe91:23d0/64 scope link
> valid_lft forever preferred_lft forever
Now when i start OLSRD then the olsrd-messages will be sent with IP-SRC
172.16.2.25.
When i reconfigure my interface to something like:
> peer-18273 ~ # ip addr show dev vlan1
> 11: (spam-protected): <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> noqueue state UP
> link/ether 00:50:bf:91:23:d0 brd ff:ff:ff:ff:ff:ff
> inet 91.205.xxx.xxx/32 brd 255.255.255.255 scope global vlan1
> inet 172.16.2.25/29 brd 172.16.2.31 scope global vlan1
> inet6 fe80::250:bfff:fe91:23d0/64 scope link
> valid_lft forever preferred_lft forever
then OLSRD will use my public ip-address 91.205.xxx.xxx to send
olsr-messages.
I will force OLSRD to use the 91.205.xxx.xxx address and not to take the
first IP that is available within the interface.
Sometimes i change IP-Addresses (renumbering) and can not allways remove
all ip-addresses first to get my new primary-ip-address to the top of
the interface configuration.
I like to have an option to define the interface-src-ip-address per
Interface-Section in olsrd.conf.
I think there is a option that allready can do this, but i dont know the
name of this option.
Liebe Grüße aus Freilassing,
Michael Rack
RSM Freilassing
--
RSM Freilassing Tel.: +49 8654 607110
Nocksteinstr. 13 Fax.: +49 8654 670438
D-83395 Freilassing www.rsm-freilassing.de
Am 16.10.2011 03:04, schrieb Michel Blais:
>
> You can't disable the primary address propagation but you could add a
> hna with your public ip with subnet /32.
>
> Le 15 oct. 2011 15:02, "Michael Rack" <(spam-protected)
> <mailto:(spam-protected)>> a écrit :
>
> Dear List,
>
> i have more then just one ip-address allocated to my interface
> "vlan1". One IP is public routed, the other is a private routed
> ip-address. Now, currently my primary interface-ip choosen from
> olsr is the private ip-address. When i make a traceroute, the
> 172.xxx IP appears. Also the routing-table shows "via 172.xxx dev
> vlan1". I like to route the traffic over the public routed
> ip-address "91.205.xxx". Is there a per interface-option in
> olsrd.conf to define the IP-Address, which should used for routing?
>
> I think i saw a SrcIP option? But i can not find this property in
> any OLSR-Documentation.
>
> Liebe Grüße aus Freilassing,
>
> Michael Rack
> RSM Freilassing
> --
> RSM Freilassing Tel.: +49 8654 607110
> <tel:%2B49%208654%20607110>
> Nocksteinstr. 13 Fax.: +49 8654 670438
> <tel:%2B49%208654%20670438>
> D-83395 Freilassing www.rsm-freilassing.de
> <http://www.rsm-freilassing.de>
>
>
> --
> Olsr-users mailing list
> (spam-protected) <mailto:(spam-protected)>
> https://lists.olsr.org/mailman/listinfo/olsr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20111018/9a489d64/attachment.html>
More information about the Olsr-users
mailing list