[Top] [All Lists]

One IP on 2 nics

To: netdev@xxxxxxxxxxx
Subject: One IP on 2 nics
From: Kevin Stewart <kevins@xxxxxxxxxxxxxx>
Date: Fri, 10 Dec 2004 13:59:41 +1300
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)
What I am after is the ability to keep one IP and MAC address when I remove my laptop from my docking station (I have a 802.11b AP on the same segment as my other nic)

how do I create a vertual interface and configure my eth0(10/100) and eth1(802.11b)
so I can route traffic out the correct interface depending on what is up

this is the closest I have come
but my laptop becoming part of spanning tree sounds .... bad
bridging and not being part of spanning tree .... worse

iface br0 inet static
       bridge_ports eth0 eth1
       pre-up ifconfig eth0 up
       pre-up ifconfig eth1 up
       pre-up brctl addbr br0
       pre-up brctl addif br0 eth0
       pre-up brctl addif br0 eth1
       pre-up brctl stp br0 on
       post-down ifconfig eth0 down
       post-down ifconfig eth1 down
       post-down brctl delif br0 eth0
       post-down brctl delif br0 eth1
       post-down brctl delbr br0

my thoughts where a dummy interface and 2 routes to with diffrent metrics out the 2 interfaces and a default route
but I am unable to get it working

Kevin Stewart

Network Engineer
DDI ++ 64 9 919 6120
Mobile ++ 64 21 885 505
Email kevins@xxxxxxxxxxxxxx

This message and any attachments contain privileged and confidential information. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately via email and then destroy this message and any attachments.

<Prev in Thread] Current Thread [Next in Thread>