Virtual box issue with /etc/network/interfaces

Tags:

Answer: 1

18 hours ago

I'm trying to run a pentest server (2014 in a box challenge: https://www.cyberchallenge.com.au/) on virtual box. I've set up a static ip in etc/network/interfaces as such:

#auto lo
auto eth0
#iface eth0 inet dhcp
iface eth0inet static

address 10.0.05
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.1.2.255
gateway 10.0.0.1

When I boot the server I am shown the IP to connect to, however when I load the IP in chrome it will timeout. When I try and set up DHCP the server gives me blank IP.

I'm new to servers so it's quite possible I'm doing something ridiculously silly, sorry if it's a simple fix!

Answer: 2

17 hours ago

You have few typos. Probably what you wanted is:

auto eth0
iface eth0 inet static
  address 10.0.0.5
  netmask 255.255.255.0
  network 10.0.0.0
  broadcast 10.0.0.255
  gateway 10.0.0.1

If your version of ubuntu is 16.04 (your network interface might not even be eth0), in this case you might need to:

Added by: Alice Champlin

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9