setup static IP address under Ubuntu
Ubuntu Linux stores all network configuration option in /etc/network/interfaces configuration file. You need to open this file using a text editor such as vi or gedit.
Open terminal (command line)
Type the following command:#sudo vi /etc/network/interfaces
ORsudo gedit /etc/network/interfaces
Make the changes as follows:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.254
Save and close the file. Restart networking:$ sudo /etc/init.d/networking restart
Tiada ulasan:
Catat Ulasan