Welcome to the Linux Foundation Forum!

Chapter 39 - Lab39.1 - static networking -ubuntu 14.04 - can't solve

So, I'm trying out the solution for 39.1 and it doesn't work for me. This however, might be my fault. The solution refers to a debian distribution and editing "/etc/networking/interfaces". On Ubuntu, this is /etc/network/interfaces. So, I edit that file with the suggested values (taken from previous steps). In my case it looks like this:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
192.168.1.156
255.255.255.0
192.168.1.254


The first value is the static ip address that the router had already given the machine; the second is the netmask and the last is the gateway (in this case, the router ip address). When I try and bring the interface back up (ifconfig eth0 up) I get no error, but then I get Network is unreachable when I try and do something else (e.g. ping).

Any suggestions where I might be going wrong?

Comments

  • Elyas
    Elyas Posts: 28
    Do you run your operating system on a virtual machine?
  • Yes, and it gets the ip address from the router, using the bridge network on virtualbox, rather than from the NAT address.
  • Hi,

    On Ubuntu systems the network interfaces are usually managed by Network Manager. So ensure that eth0 is not being managed by that service and try again.

    Happy new year!

    Luis.

Categories

Upcoming Training