谢谢二楼回复!谢谢管理员!
我倒宁愿我的网卡配置文件是错的。
无线路由器是廉价的
TP-LINK TL-WR541G+,WEP 128bit 加密,不限制客户端MAC地址,IP 192.168.97.2。
urtw配置固定IP肯定不行,配置 DHCP 可以连上AP并获取IP。
代码: 全选
#dmesg|grep urtw0
urtw0 at uhub1 port 4 "Realtek RTL8187B" rev 2.00/2.00 addr 3
urtw0: RTL8187B rev E, address 00:17:c4:4e:1b:01
代码: 全选
#cat /etc/hostname.urtw0
dhcp NONE NONE nwid mipsrun nwkey mypassword chan 4
代码: 全选
#ifconfig urtw0
urtw0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:17:c4:4e:1b:01
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: active
ieee80211: nwid mipsrun chan 4 bssid 00:14:78:1e:2f:9a 143dB nwkey mypassword 100dBm
inet 192.168.97.102 netmask 0xffffff00 broadcast 255.255.255.255
代码: 全选
#ping 192.168.97.102
PING 192.168.97.102 (192.168.97.102): 56 data bytes
64 bytes from 192.168.97.102: icmp_seq=0 ttl=255 time=0.345 ms
64 bytes from 192.168.97.102: icmp_seq=1 ttl=255 time=0.267 ms
64 bytes from 192.168.97.102: icmp_seq=2 ttl=255 time=0.213 ms
64 bytes from 192.168.97.102: icmp_seq=3 ttl=255 time=0.133 ms
--- 192.168.97.102 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.116/0.172/0.345/0.069 ms
代码: 全选
#ping 192.168.97.2
ping: sendto: Host is down
ping: wrote 192.168.97.2 64 chars, ret=-1
ping: sendto: Host is down
ping: wrote 192.168.97.2 64 chars, ret=-1
ping: sendto: Host is down
ping: wrote 192.168.97.2 64 chars, ret=-1
--- 192.168.97.2 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
刚才开机启动到network的时候,居然 urtw0:no link .........sleeping
关机再开,先出现no link,然后获取到192.168.97.102,而之前是获取到.101。对DHCP工作机理不了解。