Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
swapping eth0 and wlan0 on same IP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Mar 13, 2010 12:50 am    Post subject: swapping eth0 and wlan0 on same IP Reply with quote

Hi,

I have a laptop which I connect to the router by cable but I want to free it by adding a wifi connection.

The problem I have is that I have to set some ports in the NAT of the router, this requires specifying the IP. This would seem to imply that I need to set wlan0 to the same IP and take one or the other up/down according to availability.

Can anyone suggest a good way to handle this?

TIA, Gentree. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 247

PostPosted: Sat Mar 13, 2010 2:45 am    Post subject: Reply with quote

Hi,

Have you thought about Bonding them ?

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3#doc_chap6

http://www.gentoo-wiki.info/HOWTO_Setup_Bonded_ethernet_adapters

:)
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Mar 13, 2010 9:50 am    Post subject: Reply with quote

Quote:
mode=1 (active-backup)
Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond's MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode.


Yes this looks like it will fit the bill , I'll give it a try.

Many thanks. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum