Author Topic: NIC Issue (Working Solution)  (Read 3212 times)

huh

  • Guru
  • ****
  • Posts: 245
    • View Profile
NIC Issue (Working Solution)
« on: August 04, 2015, 03:26:30 am »
Quick background- running 12.04 on a Revo 1600 with a USB NIC.  Only package I've installed (beyond the apt-get update && apt-get upgrade) was to try out Langstron's QOrbiter.  I started with 30/6/2015's 14.04 install, but could not get the NIC's to work.  Tried a couple other dates and settled on 14/6/2015's 12.04 install.  I am pretty sure my NIC's didn't work out of the box with this one either- but somehow I was able to get connected enough to install QOrbiter.  Shut it down for the night and moved the box to the basement.

Skipping steps to the Problem & Solution-
On boot (or manual /etc/init.d/networking restart) I got an error about an incomplete line.  Lines 24-26 of the following are incorrect and get reverted back to this on reboot:
Code: [Select]
#####
# Loopback interface
#####
iface lo inet loopback

#####
# IPv4 network interfaces
#####

# --- External NIC ---
iface eth0 inet dhcp
        pre-up sysctl -q -e -w  net.ipv6.conf.eth0.disable_ipv6=1

# --- Internal NIC ---
iface eth1 inet static
        address 192.168.80.1
        netmask 255.255.255.0
        pre-up sysctl -q -e -w  net.ipv6.conf.eth1.disable_ipv6=1
        # DNS Settings for Internal Net
        dns-nameservers 192.168.80.1
        dns-search LinuxMCE

# ---   ---
iface  inet static
        address
        netmask

#####
# Activating interfaces
#####
auto eth0 eth1 lo


Simply adding # before lines 24 through 26, saving and running "/etc/init.d/networking restart" gets my NIC's running.  (For ease of reference, here are lines 23 through 26:
Code: [Select]
# ---   ---
iface  inet static
        address
        netmask

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: NIC Issue (Working Solution)
« Reply #1 on: August 04, 2015, 03:54:57 am »
Huh,

I've seen the same thing on a number of occasions.  Looks like one of the networking "automagic" scripts is leaving a template stub behind after it's done it's business. Haven't had time to track it down and lodge a ticket/patch.

Just wanted to confirm that you aren't the only one who's seen it.

HTH!

/Mike

cfernandes

  • Guru
  • ****
  • Posts: 359
    • View Profile
    • my company web site
Re: NIC Issue (Working Solution)
« Reply #2 on: August 04, 2015, 12:36:05 pm »