2012-08-07 55 views
1

我正在测试IPv6网络(使用FreeBSSD.0,VMWare,NAT),但我无法通过IPv6地址从外部(本地主机)连接(使用IPv4,精细)。我如何正确设置网络?ipv6我无法从外部连接

[[email protected] /home/osmund]# cat /etc/rc.conf 
hostname="" 
ipv6_activate_all_interfaces="YES" 
ifconfig_em1_ipv6="inet6 2001:db8:1::1 prefixlen 64" 
#ipv6_enable="YES" 
ipv6_network_interface="em1" 
ifconfig_le0="DHCP" 
sshd_enable="YES" 
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable 
dumpdev="AUTO" 
[[email protected] /home/osmund]# ifconfig 
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 
    options=8<VLAN_MTU> 
    ether 00:0c:29:8f:45:74 
    inet6 2001:db8:1::1 prefixlen 64 
    inet6 fe80::20c:29ff:fe8f:4574%em1 prefixlen 64 scopeid 0x2 
    inet 192.168.124.133 netmask 0xffffff00 broadcast 192.168.124.255 
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> 
    media: Ethernet autoselect 
    status: active 
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500 
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 
    options=3<RXCSUM,TXCSUM> 
    inet6 ::1 prefixlen 128 
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
    inet 127.0.0.1 netmask 0xff000000 
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> 
[[email protected] /home/osmund]# ping6 2001:db8:1::1 
PING6(56=40+8+8 bytes) 2001:db8:1::1 --> 2001:db8:1::1 
16 bytes from 2001:db8:1::1, icmp_seq=0 hlim=64 time=0.529 ms 
16 bytes from 2001:db8:1::1, icmp_seq=1 hlim=64 time=0.133 ms 
^C 
--- 2001:db8:1::1 ping6 statistics --- 
2 packets transmitted, 2 packets received, 0.0% packet loss 
round-trip min/avg/max/std-dev = 0.133/0.331/0.529/0.198 ms 

[[email protected] /home/osmund]# 
+0

刚刚起来,但2001年:IPv6中的db8仅用于文档,不应用于生产。如果您正在测试IPv6,则需要使用http://en.wikipedia.org/wiki/Unique_local_address(ULA)地址。 – 2012-11-01 16:04:28

回答

0

您是否尝试过使用桥接网络?