[Olsr-users] How to define the primary IP-Address of an Interface

Michel Blais (spam-protected)
Tue Oct 18 16:02:52 CEST 2011


Never saw this options so gived you the better way I know to route your 
alias.

To view all option, download the source of olsrd and check the under the 
"files" dir the text file "olsrd.conf.default.full". All options are 
there and explain.

The're also this man pages but I don't think the're up to date :
http://www.olsr.org/docs/olsrd.conf.5.html
http://www.olsr.org/docs/olsrd.8.html

Michel

Le 2011-10-18 08:40, Michael Rack a écrit :
> 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 Freilassingwww.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/291004ef/attachment.html>


More information about the Olsr-users mailing list