First, I do not know Linux that well, but I have previously installed a few servers that I use as NAS devices. I now have a new HP Microserver that I want to use as a DHCP as well as a NAS server, and after the install the network worked perfectly using dhcp. I then changed the interfaces file to read (without the comments):
Yet, the network didn't want to restart. Restarting the PC showed:Code:auto lo iface lo inet loopback # auto em1 # iface em1 inet dhcp iface em1 inet static adress 192.168.0.211 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.254
At the Ubuntu 14.04 startup screen it shows
Waiting for network configuration ... (or something similar)
So I edited the interface file and commented out the static stuff and only left
auto em1
iface em1 inet dhcp
Yet, same problem. Now it did not want to connect at all. Cannot ping anything (ifconfig -a givesCode:connect: Network is unreachable
Had to retype this, and did not type the MAC address.Code:em1 Link encap:Ethernet HWaddr 28:blah BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:18 loLink Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:18
ifup -a gives
/etc/network/interfaces:2: misplaced option
ifup: couldn't read interfaces file "/etc/network/interfaces"
Anyone have any idea what I can do ?
Bookmarks