netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Stewart <kevins@callplus.co.nz>
To: netdev@oss.sgi.com
Subject: One IP on 2 nics
Date: Fri, 10 Dec 2004 13:59:41 +1300	[thread overview]
Message-ID: <41B8F4FD.6080407@callplus.co.nz> (raw)

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
        address 192.168.18.64
        netmask 255.255.240.0
        network 192.168.16.0
        broadcast 192.168.31.255
        gateway 192.168.18.1
        bridge_ports eth0 eth1
        pre-up ifconfig eth0 0.0.0.0 up
        pre-up ifconfig eth1 0.0.0.0 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 0.0.0.0 down
        post-down ifconfig eth1 0.0.0.0 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 192.168.16.0 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@callplus.co.nz


-----------------------------------------------------------------------------------------------
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.

             reply	other threads:[~2004-12-10  0:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-10  0:59 Kevin Stewart [this message]
2004-12-10  5:14 ` One IP on 2 nics Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41B8F4FD.6080407@callplus.co.nz \
    --to=kevins@callplus.co.nz \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).