[Olsr-dev] OLSR IPs for node with multiple interfaces
aaron
(spam-protected)
Wed Apr 30 13:39:57 CEST 2008
well actually in the funkfeuer network we do run the same netmask on
different interfaces (and each one has a different IP).
And to accomodate even multiple IP addr ranges (193.238.156.0/22 and
78.41.112.0/24) we set the broadcastAddr to 255.255.255.255.
It is a bit ugly but it works. (and this only works in linux)
a.
below observe the Ips of eth1 and vlan1
--- snip ---
BusyBox v1.01 (2007.11.04-07:56+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
( ).-----.-----.-----.) ) ) ).----.) )
( - )) _ ) -__) )) ) ) )) _)) _)
(_______)) __)_____)__)__))________))__) )____)
)__) F R E I F U N K F I R M W A R E
(spam-protected):~#
(spam-protected):~#
(spam-protected):~# ifconfig
[Install freifunk-openwrt-compat for /sbin/ifconfig]
+ exec ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen
1000
link/ether 00:90:4c:60:00:2a brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc prio qlen 1000
link/ether 00:90:4c:60:00:2c brd ff:ff:ff:ff:ff:ff
inet 193.238.156.48/22 brd 193.238.159.255 scope global eth1
4: br0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
link/ether 00:90:4c:60:00:2a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.10/24 brd 192.168.1.255 scope global br0
5: vlan0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc noqueue
link/ether 00:90:4c:60:00:2a brd ff:ff:ff:ff:ff:ff
6: vlan1: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc prio
link/ether 00:90:4c:60:00:2a brd ff:ff:ff:ff:ff:ff
inet 193.238.156.49/22 brd 193.238.159.255 scope global vlan1
(spam-protected):~#
More information about the Olsr-dev
mailing list