Config IP : ubuntu server
Config IP : ubuntu server
Check IP
ifconfig
Setting command
sudo nano /etc/network/interfaces
Default DHCP IP setting
# This file describes the network interfaces available on your system
EX
Check IP
ifconfig
Setting command
sudo nano /etc/network/interfaces
Default DHCP IP setting
# 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
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth0
iface eth0 inet dhcp
Set Static IP
auto eth0
iface eth0 inet static
address 192.168.1.196
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
# 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
auto lo
iface lo inet loopback
# The primary network interface
# auto eth0
# iface eth0 inet dhcp
# auto eth0
# iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.1.196
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
iface eth0 inet static
address 192.168.1.196
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
Save and exit
Restart network
sudo /etc/init.d/networking restart
ความคิดเห็น
แสดงความคิดเห็น