milomak
November 21, 2009, 11:25am
1
For various reasons I run my internet as follows:
computer --> eth0 --> Linksys Router --> Aztech Modem/Router --> Internet
from time to time i need to access my Aztech so I also have:
computer --> eth1 --> Aztech
When I boot up OS11.2, KDE Network Manager sets eth1 as the default port. How can I change it so that eth0 is the default port?
I know this can be done by writing a couple of custom udev rules, which uniquely identify the cards by MAC address and assign persistent names. These guides will give you an idea about this:
Make Ethernet cards remember names between reboots | TuxRadar Linux
http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=3012993&sliceId=1&docTypeID=DT_TID_1_1
Sorry, forget last post - misread question.
milomak
November 21, 2009, 8:00pm
4
If it helps, this is how I have manually got it working in Debian and ArchLinux. For Fedora it was done automatically.
Debian - /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 10.0.0.3
netmask 255.255.255.0
ArchLinux - /etc/rc.conf (The Networking Section)
HOSTNAME="milomak-arch"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1 10.0.0.2"
ROUTES=(!gateway
milomak
November 21, 2009, 8:26pm
5
The ArchLinux part should be
HOSTNAME="milomak-arch"
eth0="dhcp"
eth1="eth1 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255"
INTERFACES=(eth0 eth1)
gateway="default gw 192.168.1.1 10.0.0.2"
ROUTES=(gateway)
Strange I couldn’t edit the post above