Linux tcp/ip config command

1.setup IP address

ifconfig eth0 netmask 255.255.255.0 192.168.0.10

 

2.setup default route

route add default 192.168.0.1

 

3.setup DNS

make sure /etc/resolv.conf has the following line:

nameserver 202.106.0.20

posted @ 2008-11-12 15:47  h2appy  阅读(220)  评论(0编辑  收藏  举报