Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Change eth0 to eth1, vice versa
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
furgussen
n00b
n00b


Joined: 18 Oct 2002
Posts: 56
Location: Calgary, AB, Canada

PostPosted: Mon Jan 20, 2003 7:08 pm    Post subject: Change eth0 to eth1, vice versa Reply with quote

Hello All,

This may sound wierd, but I want to change the label on the network cards in my machine from eth0 to eth1 and vice versa.

One card is an onboard 10/100 and the other is a PCI Intel Pro 1000.

The Pro 1000 gets assigned eth0, but I want it to be eth1 because my firewall rules dictate eth1 as the internal interface.

The onboard NIC always gets eth1 and whatever is in the PCI slot gets eth0.

Its no prob to change the firewall, but if there is an easy way to get those device ID's swapped that would be easier. There's no point having a GigNIC connected to my 10Mb cable modem when it could be connected to my Gig Switch :)

Tyler
Back to top
View user's profile Send private message
Praxxus
Apprentice
Apprentice


Joined: 26 Nov 2002
Posts: 193
Location: Indiana, US

PostPosted: Mon Jan 20, 2003 9:38 pm    Post subject: Reply with quote

Why not just reverse their configurations (IP addresses, routing, etc.), and swap cables?

Now is also a good time to point out the joys of modular firewall scripts. Something like:
Code:
INTERNAL_ETH="eth1"
And then use $INTERNAL_ETH throughout the rest of your firewall script. ;-)
_________________
My glaucoma just got worse!
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