[Internet] How to configure the network interface
sudo vim /etc/network/interfaces
Static
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 216.10.119.241
DHCP
iface eth0 inet dhcp
sudo ifconfig eth0 down , sudo ifconfig eth0 up
Reference :
0 意見:
張貼留言