我在Ubuntu上创建了一个桥接器并为其分配了一个IPv6地址:
# ifconfig br1
br1 Link encap:Ethernet HWaddr 1a:65:a0:13:71:84
inet6 addr: 2001:220:abcd:70::40/64 Scope:Global
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 78:e7:d1:c6:24:05
inet6 addr: 2001:220:abcd:70::25/64 Scope:Global
inet6 addr: fe80::7ae7:d1ff:fec6:2405/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:383758 errors:0 dropped:164 overruns:0 frame:0
TX packets:116401 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:191849350 (191.8 MB) TX bytes:8911276 (8.9 MB)
Interrupt:17
# route -6 -n
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2001:220:abcd:70::/64 :: U 256 0 0 eth0
2001:220:abcd:70::/64 :: U 256 0 0 br1
fe80::/64 :: U 256 0 0 br0
fe80::/64 :: U 256 0 0 tap0
fe80::/64 :: U 256 0 0 tap1
fe80::/64 :: U 256 0 0 br1
fe80::/64 :: U 256 0 0 eth0
::/0 :: !n -1 1 3383 lo
::1/128 :: Un 0 1 395 lo
2001:220:abcd:70::25/128 :: Un 0 1 2412 lo
fe80::100c:e5ff:fe0b:8414/128 :: Un 0 1 0 lo
fe80::68f7:bbff:fe7f:21a5/128 :: Un 0 1 0 lo
fe80::7ae7:d1ff:fec6:2405/128 :: Un 0 1 657 lo
fe80::b40f:3aff:fe58:b0ce/128 :: Un 0 1 0 lo
ff00::/8 :: U 256 0 0 br0
ff00::/8 :: U 256 0 0 tap0
ff00::/8 :: U 256 0 0 tap1
ff00::/8 :: U 256 0 0 br1
ff00::/8 :: U 256 0 0 eth0
::/0 :: !n -1 1 3383 lo
我无法在主机上ping br1。但是,我能够ping另一个IP为2001:220:abcd:70 :: 26的Ubuntu系统。 另外,br1没有显示在'ifconfig'的输出中;我必须做'ifconfig br1'来列出它。
对此行为的任何想法?
谢谢!
答案 0 :(得分:1)
我猜你必须在eth0接口上禁用2001 IP,因为转发接口不应该有IP。