centos7 好像不行
我按照你的方法申请了地址,也按照 他们的提示在我们的测试服务器上执行了。
[root@iZ9422ykuhmZ ~]# modprobe ipv6
modprobe: ERROR: could not find module by name='off'
modprobe: ERROR: could not insert 'off': Function not implemented
[root@iZ9422ykuhmZ ~]# ip tunnel add he-ipv6 mode sit remote 216.218.221.6 local 120.76.157.167 ttl 255
[root@iZ9422ykuhmZ ~]# ip link set he-ipv6 up
[root@iZ9422ykuhmZ ~]# ip addr add 2001:470:18:2aa::2/64 dev he-ipv6
[root@iZ9422ykuhmZ ~]# ip route add ::/0 dev he-ipv6
[root@iZ9422ykuhmZ ~]# ip -f inet6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 fe80::216:3eff:fe06:1f36/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 fe80::216:3eff:fe06:1170/64 scope link
valid_lft forever preferred_lft forever
5: he-ipv6@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480
inet6 2001:470:18:2aa::2/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::784c:9da7/128 scope link
valid_lft forever preferred_lft forever
我在 8080上面启动了 测试的服务。只能ipv4 可以访问 ipv6 还是访问 不了。帮忙分析一下这是啥原因?
-------------------------
回 4楼dongshan8的帖子
是 centos 7 版本~!
-------------------------
回 4楼dongshan8的帖子
我用
create the /etc/sysconfig/network-scripts/ifcfg-sit1 file and put the following in it:
# Hurricane Electric V6V4 ipv6 tunnel
ipv4a=209.51.xxx.xxx # Server IPv4 Address from configuration above
ipv4b=66.228.xxx.xxx # Client IPv4 Address from configuration above
ipv6a=2001:db8:xxxx:xxxx::1 # Server IPv6 Address from configuration above
ipv6b=2001:db8:xxxx:xxxx::2 # Client IPv6 Address from configuration above
NAME="Hurricane Electric SIT"
DEVICE=sit1
ONBOOT=yes
USERCTL=yes
BOOTPROTO=none
PEERDNS=no
IPV6INIT=yes
IPV6_AUTOTUNNEL=yes
IPV6ADDR="$ipv6b/64"
IPV6_ROUTER=yes
IPV6_AUTOCONF=no
IPV6_CONTROL_RADVD=yes
IPV6TUNNELIPV4=$ipv4a
IPV6TUNNELIPV4LOCAL=$ipv4b
PHYSDEV=eth0
TYPE=sit
DEVICETYPE=sit
NM_CONTROLLED=no
NETWORKING_IPV6
IPV6_DEFAULTGW=$ipv6a
IPV6_DEFAUTLDEV=sit1
Don’t forget to change the IP addresses at the top of the file to match yours!
Now, all that is left is to assign some IPv6 addresses to our interfaces! In your /etc/sysconfig/network-scripts/ifcfg-eth0 file, you can add a few lines like the following:
#HE.net ipv6 tunnel config
IPV6INIT=yes
IPV6ADDR=2001:db8:xxxx:xxxx::1/64
IPV6ADDR_SECONDARIES="2001:db8:xxxx:xxxx::1/64 2001:db8:xxxx:xxxx::1/64"
Make sure you change the IPv6 addresses to match what you have been given by Hurricane Electric!
After restarting your network (with service network restart), you should be up and running! You can browse to an IPv6 website or try to ping an IPv6 address, to see if your IPv6 setup is working.
Next, you can configure your forward and reverse DNS zones with the necessary records to show off your shiny new IPv6 addresses!
这个方法 设置 也不行!郁闷!这个 隧道也太 坎坷了!
-------------------------
回 8楼dongshan8的帖子
谢谢~!版主!