日期:2014-05-16  浏览次数:20805 次

linux设置IP地址

设置IP地址:
?ifconfig eth1 10.10.10.224 netmask 255.255.255.0 up
[root@root Haiersoft]# route add default gw 10.10.10.1
[root@root Haiersoft]# ping newsmth.net
PING newsmth.net (60.2.251.8) 56(84) bytes of data.
64 bytes from 60.2.251.8: icmp_seq=1 ttl=51 time=22.1 ms
64 bytes from 60.2.251.8: icmp_seq=2 ttl=51 time=22.5 ms
64 bytes from 60.2.251.8: icmp_seq=3 ttl=51 time=21.7 ms
^C
--- newsmth.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2329ms
rtt min/avg/max/mdev = 21.785/22.175/22.597/0.374 ms
[root@root Haiersoft]# telnet yjrg.net
[root@root Haiersoft]# clear
[root@root Haiersoft]# ifconfig