osx ipv6 預設路由

osx ipv6 預設路由

我有一台 imac,多年來一直運行靜態 ipv6;我正在努力向客戶部署 ipv6,並將測試路由器的 LAN 端插入 imac 上的 USB 以太網接口,該接口正確地從測試路由器獲取委託地址,並獲取鏈路本地默認路由從中:

en5: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=4<VLAN_MTU>
    ether d0:37:45:b8:f3:64 
    inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 fe80::1427:aee3:e9e5:138%en5 prefixlen 64 secured scopeid 0xf 
    inet6 2607:f678:2fff::843:5ec6:8b74:9785 prefixlen 64 autoconf secured 

netstat -rn:
...
Internet6:
Destination                             Gateway                         Flags         Netif Expire
default                                 2607:f678:1::1                  UGSc            en0
default                                 fe80::%utun0                    UGcI          utun0       
default                                 fe80::4a77:46ff:fef9:5bb3%en5   UGcI            en5       
...

當我刪除真正的預設路由(en0)時,ipv6存取立即得到「沒有到主機的路由」(即不是來自上游,而是第一跳):

# traceroute6 google.com
connect: No route to host

網關可 ping 通:

# ping6 fe80::4a77:46ff:fef9:5bb3%en5 
PING6(56=40+8+8 bytes) fe80::1427:aee3:e9e5:138%en5 --> fe80::4a77:46ff:fef9:5bb3%en5
16 bytes from fe80::4a77:46ff:fef9:5bb3%en5, icmp_seq=0 hlim=64 time=0.708 ms
16 bytes from fe80::4a77:46ff:fef9:5bb3%en5, icmp_seq=1 hlim=64 time=0.638 ms
^C

我嘗試刪除 utun0 路由,以防它嘗試使用它,但得到:

# route delete -inet6 default fe80::%utun0
route: writing to routing socket: not in table
delete net default: gateway fe80::%utun0: not in table

我不確定這裡缺少什麼...

相關內容