Originally Posted by
watercooled
Edit /etc/network/interfaces and replace:
With:
Changing any addresses as appropriate, and replace eth0 with your adapter (likely eth0 if you only have 1 adapter).
Then type
to apply the settings without needing to reboot (note this will terminate any active connections).
back home now. first thing i did was to try the above. i however dont get this
Code:
allow-hotplug eth0 inet dhcp
below is the contents of my interfaces file
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
edit: i added the ip address. gatewaya ddress etc like this:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
And recieved an error when trying to apply the enw changes with the networking restart command
Code:
* Reconfiguring network interfaces... /etc/network/interfaces:10: misplaced option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:10: misplaced option
ifup: couldn't read interfaces file "/etc/network/interfaces"
[fail]