Open a terminal session and enter:
sudo nano /etc/network/interfacesTwo network interfaces should be listed, lo and eth0:
# This file describes the network interfaces available on your systemChange eth0 to your desired settings, such as:
# 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
auto eth0Save the file and close using Ctl+X, Y, Enter.
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Restart the network to apply the new setting, with this command:
sudo /etc/init.d/networking restartVerify your network settings with:
ifconfigSee also
No comments:
Post a Comment