LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   eth1 interface doesnt start automatically ubuntu server 9.04 (https://www.linuxquestions.org/questions/linux-networking-3/eth1-interface-doesnt-start-automatically-ubuntu-server-9-04-a-744635/)

Person_1873 08-02-2009 08:08 PM

eth1 interface doesnt start automatically ubuntu server 9.04
 
i've replaced my ethernet NIC in my ubuntu server and now it doesnt bring up the interface on boot, every time i reboot the system i need to be there to bring the interface up, how can i resolve this?

/etc/network/interfaces
Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth1
iface eth1 inet 10.1.1.10


Meson 08-02-2009 08:29 PM

Does your computer see it as eth0 now?

Person_1873 08-02-2009 08:35 PM

no, the old interface was eth0, by replacing the device it has coined it as eth1

Meson 08-02-2009 08:41 PM

But they're not both physically connected to the system? Do you have DHCP on your network? For kicks while you figure it out, why don't you just try
Code:

auto lo
iface lo inet loopback

auto eth0

auto eth1


Person_1873 08-03-2009 04:46 AM

no, the old one is sitting on my desk, i plugged the new one into the old slot, the problem isnt dhcp related, that works perfectly once i bring the interface up, i'll try your suggestion of adding in the auto eth0 line, i wanna leave the server as a static IP though

Person_1873 08-03-2009 05:44 AM

i tried your suggestion of having eth0 set to auto in there as well, this didn't do a thing, the interface still doesn't start.

i also set eth1 as auto with no specified IP, it still doesn't work, so the file basically looks like your example

alan_ri 08-03-2009 06:01 AM

So, you have tried this;

Examples:
Code:

iface eth1 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

Code:

auto eth1
iface eth1 inet dhcp


Ipolit 08-03-2009 06:35 AM

Are you sure it is eth1
The right format of the file is the one given by alan_ri
There is a file in ubuntu - /etc/udev/rules.d/70-persistent-net.rules where the numbers of the network interfaces are shown. You can edit those numbers in the manner you want. For example we can see this in the file:

Code:

# PCI device 0x14e4:0x170c (b44)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:b9:69:71:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x14e4:0x4311 (b43-pci-bridge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:7e:01:58:a9", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# PCI device 0x14e4:0x4311 (wl)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:7e:01:58:a9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

so you can safely remove the section for your previous card and to change the number from 1 to 0 for the new one. And also here you can see is really the new card with number 1.

Meson 08-03-2009 07:02 AM

Thanks for that knowledge Ipolit

Person_1873 08-03-2009 11:13 PM

yes i'm sure it's eth1

i've fixed it by letting all interfaces get an IP via DHCP and setting my DHCP server to distribute IP's based on the MAC

Person_1873 12-20-2009 07:19 AM

i now have both cards connected and working, one is giving out IP's and the other is statically set on the network, i just had my interfaces file set wrongly, i forgot to specify it as
Code:

auto eth1
 iface inet static



All times are GMT -5. The time now is 02:31 AM.