Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 2 eth interfaces (onboard and pci card) and when I plug the cable on the first one (eth0), the internet doesn't work (no dns), but when i plug the cable on the eth1, it works... BTW the 2 cards can see the internal network. Here is my /etc/networks/interfaces:
Code:
# The primary network interface
auto eth0
auto eth1
## DHCP
#iface eth0 inet dhcp
#iface eth1 inet dhcp
## Static
iface eth0 inet static
name Carte Ethernet (onboard)
address 172.16.130.220
network 172.16.130.0
netmask 255.255.255.0
broadcast 172.16.130.255
gateway 172.16.130.254
iface eth1 inet static
name Carte Ethernet (pci)
address 172.16.130.221
network 172.16.130.0
netmask 255.255.255.0
broadcast 172.16.130.255
gateway 172.16.130.254
I don't understand the stuff about the "ip route list"... I take a look where? Google?
The problem comes from the configuration of the PCs in my schools... There are 2 eth cards and the cable isn't always on the same plug. I'm just bored of switching between the 2 interfaces and i want to know a way of making it automagically
Someone had a sense of humour when they set it up, coz it's a basic routing mistake to have 2 possible connections like that without some special programming to swap between them..
That's what i used to do, i was just searching a way to prevent me to switch the cable between the 2 cards, because the cable isn't plug on the same card each time...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.