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的,还是不能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也还是不能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 ~]#
。


deng_zhao333 于 2013-04-03 01:17:46发表:
用真心,真心支持楼主
isosdw 于 2009-09-16 17:55:36发表:
真用心,支持楼主