Ubuntu Networking Configuration Using Command Line

Posted on 十一月 30, 2007. Filed under: Linux |

from Ubuntu Geek

全文: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

Make a Comment

Make a Comment: ( None so far )

blockquote and a tags work here.

Liked it here?
Why not try sites on the blogroll...