全文:http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html
設定DHCP (假設是用eth0)
$ sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
設定固定IP
$ sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
設定DNS
$sudo vim /etc/resolv.conf
nameserver your.dns.server
0 comments:
Post a Comment