December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.
sudo ifconfig eth0 up 192.168.1.137 netmask 255.255.255.0 sudo route add -net 0.0.0.0 gw 192.168.1.1 eth0I have a static network interface, here's what's in /etc/network/interfaces:
# 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 static address: 192.168.1.137 netmask: 255.255.255.0 gateway: 192.168.1.1 dns-nameservers: 192.168.1.7 22.214.171.124 126.96.36.199