Network setup
Category: /knowledge /linux /networkTags: linux ifconfig
To change IP address
-
sudo ifconfig eth0 192.168.1.7
-
edit
/etc/resolv.conf
-
edit
/etc/network/interfaces
iface eth0 inet static address 192.168.1.7 netmask 255.255.255.0 gateway 192.168.1.1