Ubuntu - eth1 refuses to play ball

Soldato
Joined
12 Jan 2006
Posts
2,547
Hi all,
I have searched these forums and google and can't seem to find a solution to what i am looking for (being a linux noob i am probably searching for the wrong thing)

I setup my ubuntu-server using the onboard 10/100 network card (eth0) which all is working fine, can connect to everything i want and ssh into the box.

Now the problem is i want to utilise the onboard gigabit network card (eth1), i currently have both setup as static addresses but when i set eth1 to dhcp it got a correct IP address fine.
Now as far as i can tell everything is working fine as it gets its details and when i do ifconfig -a it seems ok
Code:
eth0      Link encap:Ethernet  HWaddr 00:11:d8:54:ce:26
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:fe54:ce26/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:266 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31271 (31.2 KB)  TX bytes:20151 (20.1 KB)
          Interrupt:22 Base address:0x8000

eth1      Link encap:Ethernet  HWaddr 00:11:d8:54:e1:bf
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:fe54:e1bf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5900 (5.9 KB)  TX bytes:2368 (2.3 KB)
          Interrupt:17

The problem is i cant see anything on the network as soon as i unplug eth0, including not being able to ping the gateway giving the error destination host unreachable

Here is a copy of the ifconfig and resolv
Code:
# The primary network interface
auto eth0
iface eth0 inet static
 address 192.168.1.101
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.254

# The secondary network interface
auto eth1
iface eth1 inet static
 address 192.168.1.100
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.254

resolv.conf
Code:
domain config
search config
nameserver 192.168.1.254


Any help is much appreciated
 
I was having some weird problems with my Mac Mini's wireless and wired connections on Intrepid, until I ditched Network Manager and switched to WICD. Since then I've not looked back.

Could be worth giving it a go. If you're running 8.10 then try this...

1/ Add the following to your /etc/apt/sources.lst
Code:
# wicd
deb http://apt.wicd.net intrepid extras

2/ run the following commands
Code:
wget -q http://apt.wicd.net/wicd.gpg -O- | sudo apt-key add - 
sudo apt-get update 
sudo apt-get install wicd
 
Try bringing the connection up before you try anything, if its not set to start on boot this could easily cause your issues (As it's a static address, it won't necessarily start when you plug the cable in as a DCHP would):
Code:
sudo ifup eth1

Other than that, obvious things would be MAC address restriction or similar running on your router :)

Cheers

-Leezer-
 
afraid i have already tried that :<
I even turned eth0 to down and eth1 to up so it wouldnt have a choice but to use it

Funny thing is the card is picked up during setup, i knew i should have chosen it from the outset :/
 
hehe i am only tinkering at the moment so just pulled my old athlon xp out of the cupboard, ultimately i am going to setup PXE booting so you can restor backups at the touch of a button :)
Learning the ropes regarding linux management really
 
Back
Top Bottom