黑苹果遇到的重启路由器后无法上网,必须重启电脑的奇怪问题。

2013-06-25 17:42:31 +08:00
 yescola
用了一台黑苹果,情况是这样,上网什么的一切正常,有线连接。但每次重启路由器之后,就无法上网,路由器web界面也打不开。无论是使用DHCP还是还是手动设定IP地址都是这样。

而且如果是使用DHCP的话,重启路由器之后自动获得的IP地址不是理应的192.168.1.x 而是无规律的一些IP地址,比如219.121.xxx.xxx类似这样的。非常奇怪。

但只要重启一次电脑,又可以正常上网了。DHCP获得的IP地址也正确了。

换了2个路由器也都是同样的情况,而且路由器重启后MBA的无线是可以正常上网的,所以肯定可以排除掉路由器的问题。

求解,求解。
8581 次点击
所在节点    macOS
23 条回复
maoyipeng
2013-06-25 18:10:54 +08:00
手动ip呢
yescola
2013-06-25 18:11:49 +08:00
@maoyipeng 手动IP也一样,也无法上网。重启电脑后正常。
013231
2013-06-25 18:12:06 +08:00
和你一樣, 目前無解中.
yescola
2013-06-25 18:12:57 +08:00
@maoyipeng 而且这个问题我感觉不是黑苹果系统或者驱动的问题。。因为我以前在另一台Windows XP里也遇到过。不过当时没怎么注意。
yescola
2013-06-25 18:13:12 +08:00
@013231 你也是黑苹果么?也是这个问题?
maoyipeng
2013-06-25 18:14:12 +08:00
@yescola 我觉得你该换块原生驱动的网卡
你能把console里的内容贴出来么
yescola
2013-06-25 18:16:50 +08:00
@maoyipeng 不明觉厉。。小菜不知道console在哪里和怎么用。。。我看3楼的情况,貌似这个可能真的是网卡驱动的问题。。
maoyipeng
2013-06-25 18:17:51 +08:00
@yescola 你spotlight里搜索下。。。。就是显示系统日志的地方
yescola
2013-06-25 18:19:14 +08:00
@maoyipeng 我应该什么时候使用console?是重启路由器之后无法上网的时候使用吗?
maoyipeng
2013-06-25 18:21:59 +08:00
@yescola 你先开console 然后重启路由器 ,把新增的内容贴上来,或者 ifconfig en0 先down 再up

ps:楼主不会命令行吧
013231
2013-06-25 18:31:48 +08:00
@yescola 黑蘋果, 主板GA-H77N-wifi, 無線網卡換成了ATHEROS AR9280. 不過有一點區別, 我是和路由器物理連接中斷(拔掉網線或關閉路由器)再重連後無法獲取IP, 而不是獲得一個隨機的IP.
yescola
2013-06-25 18:33:21 +08:00
@maoyipeng 已经重启过测试了。

图1:使用DHCP,重启路由器后自动获得的奇怪的IP地址,无法上网,而且也无法获取到路由器地址。
http://s.yunio.com/NpWNXv

图2:重启路由器后控制台的截图。
http://s.yunio.com/S_nSBm

以下为复制的内容(在使用DHCP无法上网之后我还手动设定过一次IP地址到192.168.1.103,依旧不可以)
13-6-25 下午6:23:23.460 System Preferences[1007]: Could not find image named 'InvalidDataIcon'.
13-6-25 下午6:23:23.506 System Preferences[1007]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
13-6-25 下午6:23:23.506 System Preferences[1007]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
13-6-25 下午6:23:56.140 configd[17]: subnet_route: write routing socket failed, Network is unreachable
13-6-25 下午6:23:57.747 configd[17]: network changed: v4(en0+:169.254.56.236) DNS* Proxy+ SMB
13-6-25 下午6:24:32.312 coreaudiod[172]: Disabled automatic stack shots because audio IO is active
13-6-25 下午6:24:32.000 kernel[0]: Sound assertion - Command/Response TIMED OUT and ( kRequestStateMatch == fCodecRequest->state = 2 ), fCodecRequest->command->codec: -549208466688, fCodecRequest->command->verb: 0xFFF, fPoweredDown: 0
13-6-25 下午6:24:32.000 kernel[0]: Sound assertion in AppleHDAController at line 5097
13-6-25 下午6:24:32.000 kernel[0]: Sound assertion in AppleHDAController at line 5098
13-6-25 下午6:24:32.000 kernel[0]: Sound assertion in AppleHDAController at line 8276
13-6-25 下午6:24:32.630 com.apple.SecurityServer[15]: Session 100018 created
13-6-25 下午6:24:32.776 coreaudiod[172]: Enabled automatic stack shots because audio IO is inactive
13-6-25 下午6:25:10.283 configd[17]: IPMonitor apply_ipv4_route failed to add route, Network is unreachable:
13-6-25 下午6:25:10.283 configd[17]: Dest 0.0.0.0 Mask 0.0.0.0 Gate 192.168.1.1 Ifp en0 Ifa 169.254.56.236
13-6-25 下午6:25:10.284 configd[17]: network changed: v4(en0!:169.254.56.236) DNS* Proxy SMB
13-6-25 下午6:25:10.286 configd[17]: DHCP en0: RELEASE transmit failed
13-6-25 下午6:25:10.292 configd[17]: network changed: v4(en0-:169.254.56.236) DNS* Proxy- SMB
13-6-25 下午6:25:28.688 System Preferences[1035]: Could not find image named 'InvalidDataIcon'.
13-6-25 下午6:25:28.733 System Preferences[1035]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
13-6-25 下午6:25:28.733 System Preferences[1035]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
13-6-25 下午6:26:11.929 configd[17]: network changed: v4(en0+:192.168.1.103) DNS* Proxy+ SMB
013231
2013-06-25 18:36:00 +08:00
剛剛又胡亂試了一下, 竟然把我的問題解決了:
013231
2013-06-25 18:38:26 +08:00
重新連接後, 運行`sudo ifconfig en2 down`即可讓網卡分配到ip. 第一塊網卡是en2, ifconfig down非但沒關上網卡反而使它可以分配IP了, 黑蘋果真神奇.
yescola
2013-06-25 18:40:29 +08:00
@013231 这句话命令的意思是啥。。
maoyipeng
2013-06-25 18:41:06 +08:00
@yescola 重启network-interface
maoyipeng
2013-06-25 18:43:33 +08:00
你点有个续租有用么
maoyipeng
2013-06-25 18:45:11 +08:00
我估计是dhcp的问题,重新获取下ip就好了
013231
2013-06-25 19:41:30 +08:00
@yescola 本來的意義是關閉en2, 但在黑蘋果上執行時非但沒關閉en2還修好了無法分配IP的BUG.
yescola
2013-06-25 20:44:23 +08:00
@maoyipeng 续租无用,可能是驱动问题吧,我试试更新驱动。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/73593

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX