ºìÁªLinuxÃÅ»§
Linux°ïÖú

RF 6 SP2 ÏÂÎÞÏßÍøÂçÉèÖÃ

·¢²¼Ê±¼ä:2009-09-16 16:40:51À´Ô´:ºìÁª×÷Õß:ryw12403
redflag 6 sp2 ÎÞÏßÍøÂçÉèÖÃ

ÕâЩÌìÒ»Ö±ÔÚѧϰREDFLAG £¬×°ÁËRF 6 SP2 , ºÍRF 7£¬ÓÃÁ˸оõ»¹ÊÇ6 Ç׺ÍЩ£¬¾Í¼¯Öо«Á¦Ñ§RF6 ÁË¡£

ǰЩÌìÎÞÏßÍø¿¨¼ºÄÜÔÚRF6 SP2ÏÂÉÏÍø£¬Ê·ÊÇÔÚRF7 Ï»¹ÊÇû¸ã¶¨£¬¹ýЩÌìÔÙÈ¥Ñо¿Ï¡£

½ñÌ켺°ÑÎÞÏßÍø¿¨PING ²»µ½ÄÚÍøµÄÔ­ÒòÕÒµ½ÁË£¬ÒòΪÎÒ»¹ÓÐÒ»ÕÅÓÐÏßÍø¿¨£¬Ò²ÊÇ×Ô¶¯¿ªÆôµÄ£¬ËùÒÔÓÐÈçÏ·ÓÉ£º
[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

ÀïÃæûÓÐÎÒÎÞÏßÍø¿¨µÄ·ÓɵØÖ·£¬ËùÒÔǰЩÌ쿪»ú×ÜÒªÔÚÖն˼ÓÉÏ¡£
[root@rf6net ~]# route add default gw 192.168.1.1
SIOCADDRT: ÎļþÒÑ´æÔÚ
[root@rf6net ~]# route add default gw 192.168.1.1 wlan0
[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

ÕâÑù¼ÓÉϺó¾ÍÄÜ´ò¿ªÍøÒ³ÁË£¬µ«ÊÇPING ²»Í¨ÄÚÍø192.168.1. £¬µ±Ê±Ö»ÒªÄÜÉÏÍø¾ÍºÜ¸ßÐËÁË£¬Ò²Ã»È¥ÏëÊÇʲôԭÒò£¬½ñÌìÓпգ¬
°ÑÔ­ÒòÕÒ³öÀ´ÁË¡£

1¡£ÒòΪ·ÓÉÊÇÒÀÕÕ˳ÐòÀ´ÅÅÁкʹ«ÊäµÄ£¬ËùÒÔµ±ÎÒPING ÄÚÍø¶Îʱ£¬×ÜÊÇÓÉeth0 µÄ192.168.1.0 ÍøÓò ËͳöÈ¥£¬¿ÉÊÇÎÒûÓа´ÍøÏߣ¬µ±È»ÊÇPING ²»Í¨£¬
¿Éϵͳ²»»áÒÀ´ÎÕÒÏÂÈ¥¡£µ«PING ÍâÍø¶Îʱ£¬ÏµÍ³¾ÍÕÒÄÇdefault ÍøÓò£¬ËäÈ»ÎÒÓÐÁ½¸ödefault,µ«×¢Òâ¿´ÁË£¬ÊÇÄÇÎÞÏßµÄÔÚÇ°£¬ËùÒÔÄÜPING ͨ¡£
[root@rf6net ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
^C
--- 192.168.1.6 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

[root@rf6net ~]# ping 202.96.107.29
PING 202.96.107.29 (202.96.107.29) 56(84) bytes of data.
64 bytes from 202.96.107.29: icmp_seq=1 ttl=249 time=14.8 ms
64 bytes from 202.96.107.29: icmp_seq=2 ttl=249 time=14.2 ms
^C
--- 202.96.107.29 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 14.222/14.534/14.847/0.334 ms

ÏëͨÕâµãºóΪÁËÑéÖ¤£¬ÎҾͰÑÆäËüµÄһЩÍøÓò¶¼DEL £¬¿´»¹Äܲ»ÄÜPING ¡£

rtt min/avg/max/mdev = 14.222/14.534/14.847/0.334 ms
[root@rf6net ~]# route del -net 169.254.0.0 gw 255.255.0.0
SIOCDELRT: ÎÞЧµÄ²ÎÊý
[root@rf6net ~]# route del -net 169.254.0.0 netmask 255.255.0.0
[root@rf6net ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
From 192.168.1.38 icmp_seq=2 Destination Host Unreachable
From 192.168.1.38 icmp_seq=3 Destination Host Unreachable
From 192.168.1.38 icmp_seq=4 Destination Host Unreachable
^C
--- 192.168.1.6 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3

ɾÁËÄǸö169.254.0.0µÄ£¬»¹ÊDz»ÄÜping ͨ£¬

[root@rf6net ~]# route del -net 192.168.1.0 netmask 255.255.255.0 wlan0
[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@rf6net ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
^C
--- 192.168.1.6 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms


ɾÁËÄǸöÎÞÏßµÄ192.168.1.0Ò²»¹ÊDz»ÄÜping ͨ¡£

[root@rf6net ~]# route del -net 192.168.1.0 netmask 255.255.255.0
[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@rf6net ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
64 bytes from 192.168.1.6: icmp_seq=1 ttl=254 time=4.73 ms
64 bytes from 192.168.1.6: icmp_seq=2 ttl=254 time=3.24 ms
64 bytes from 192.168.1.6: icmp_seq=3 ttl=254 time=3.82 ms
64 bytes from 192.168.1.6: icmp_seq=4 ttl=254 time=3.27 ms
^C
--- 192.168.1.6 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 3.241/3.767/4.730/0.605 ms

OK£¬É¾ÁËÄǸöeth0ºó¾Í¿ÉÒÔÁË¡£ÕâÀïÎÒÊÇ°ÑÄÇÁ½¸ö192.168.1.0µÄ¶¼É¾ÁË£¬²»¹ý£¬ÏÈɾÕâ¸öeth0µÄ£¬°Ñwlan0µÄÁôÏ£¬Ò²ÄÜpingͨÁË¡£

×îºóÖ»ÁôÁ½¸ö£¬ÒòΪһ¸ö169.254.0.0ÔõôҲɾ²»ÁË£¬É¾ÁËÓÖ³öÀ´ÁË¡£¾Í²»¹ÜËûÏÈ¡£
root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
[root@rf6net ~]# ping 192.168.1.6
PING 192.168.1.6 (192.168.1.6) 56(84) bytes of data.
64 bytes from 192.168.1.6: icmp_seq=1 ttl=254 time=3.75 ms
64 bytes from 192.168.1.6: icmp_seq=2 ttl=254 time=3.37 ms
64 bytes from 192.168.1.6: icmp_seq=3 ttl=254 time=3.32 ms
^C
--- 192.168.1.6 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 3.320/3.481/3.754/0.199 ms
[root@rf6net ~]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=2.59 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=2.01 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=2.58 ms
^C
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 2.013/2.394/2.591/0.275 ms
[root@rf6net ~]# ping www.google.com
PING www.l.google.com (66.249.89.147) 56(84) bytes of data.
64 bytes from nrt04s01-in-f147.google.com (66.249.89.147): icmp_seq=1 ttl=243 time=55.1 ms
64 bytes from nrt04s01-in-f147.google.com (66.249.89.147): icmp_seq=2 ttl=243 time=54.4 ms
64 bytes from nrt04s01-in-f147.google.com (66.249.89.147): icmp_seq=3 ttl=243 time=54.8 ms
64 bytes from nrt04s01-in-f147.google.com (66.249.89.147): icmp_seq=4 ttl=243 time=55.4 ms
^C
--- www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 54.408/54.943/55.401/0.401 ms
[root@rf6net ~]# route


Ö»ÁôÁ½¸ö£º
[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
[root@rf6net ~]#


ÕâÑùÉÏÍøÒ»ÇÐÕý³£ £¬

Ö»ÓÐÕâ¸öÎÊÌ⣬169.254.0.0ÊÇʲôÍøÓò£¬Ôõôdel ÁËÓÖ»á³öÀ´£¿

[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
[root@rf6net ~]# route del -net 169.254.0.0 netmask 255.255.0.0 wlan0
[root@rf6net ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
[root@rf6net ~]#

¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 2 ÌõÆÀÂÛ

  1. deng_zhao333 ÓÚ 2013-04-03 01:17:46·¢±í:

    ÓÃÕæÐÄ£¬ÕæÐÄÖ§³ÖÂ¥Ö÷

  2. isosdw ÓÚ 2009-09-16 17:55:36·¢±í:

    ÕæÓÃÐÄ£¬Ö§³ÖÂ¥Ö÷