• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

NIC interfaces will not start at bootup (Debian)

NIC interfaces will not start at bootup, but they start and work perfectly with the ifup command. I guess the mistake I am doin is minor, but I have not encountered this problem before. Any tips?
0
itnifl
Asked:
itnifl
  • 2
1 Solution
 
chenry334Commented:
can you post your /etc/network/interfaces file?

Make sure to add "auto eth0", "auto eth1", etc. for each interface you want to start on bootup into your /etc/network/interfaces file
0
 
itniflAuthor Commented:
Now it looks like this:

iface lo inet loopback
allow-hotplug eth0 eth1
iface auto eth0 inet dhcp
iface auto eth1 inet static
      address 192.168.10.4
        netmask 255.255.255.0
        network 192.168.10.0
        broadcast 192.168.10.255
        dns-nameservers 192.168.10.2
        dns-search freedev.local

Same problem.
0
 
itniflAuthor Commented:
OK. I messed up littlebit. Heres the correct config, with help from the solution :)

auto lo eth0 eth1
iface lo inet loopback
allow-hotplug eth0 eth1
iface eth0 inet dhcp
iface eth1 inet static
  address 192.168.10.4
   netmask 255.255.255.0
   network 192.168.10.0
   broadcast 192.168.10.255
   dns-nameservers 192.168.10.2
   dns-search freedev.local
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now