Skip to content

Mac 显示 IPv6 地址,无法上网

Reyes Yang edited this page Jan 26, 2022 · 2 revisions

参考

正常可上网的设置

7q7UMV.md.png

如何重启 Mac 的网络服务

~ ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether 14:7d:da:4b:05:eb
	inet6 fe80::1843:46bf:ad3a:e360%en0 prefixlen 64 secured scopeid 0x6
	inet6 2409:8929:f05:458f:109e:6c0d:db0e:ee1b prefixlen 64 deprecated autoconf secured
	inet6 2409:8929:f05:458f:29b8:d264:ccb:5c5f prefixlen 64 deprecated autoconf temporary
	inet 192.168.43.214 netmask 0xffffff00 broadcast 192.168.43.255
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: active

~ sudo ifconfig en0 down
~ ifconfig en0
en0: flags=8862<BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether 14:7d:da:4b:05:eb
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: inactive

~ sudo ifconfig en0 up
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether 14:7d:da:4b:05:eb
	inet6 fe80::1843:46bf:ad3a:e360%en0 prefixlen 64 secured scopeid 0x6
	inet6 2409:8929:f05:458f:109e:6c0d:db0e:ee1b prefixlen 64 deprecated autoconf secured
	inet6 2409:8929:f05:458f:29b8:d264:ccb:5c5f prefixlen 64 deprecated autoconf temporary
	inet 192.168.43.214 netmask 0xffffff00 broadcast 192.168.43.255
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: active