Linux下IPv6协议的安装

2011-02-12 12:32:57 作者:admin 来源: 浏览次数:0 网友评论 0

 
1.Linux环境下IPv6地址的安装
 
1.Linux环境下IPv6地址的安装
Linux的内核版本需要在2.2.0以上,以RedLinux9 0系统为例,可以使用下面的命令来加载ipv6模块:
[root@localhost net]# modprobe ipv6
如果已经成功安装了IPv6模块,可以通过检查一下/proc/net/if_inet6文件是否存在即可,例如:
[root@localhost net]# more if_inet6
00000000000000000000000000000001 01 80 10 80
lo
20010da88007000102e081fffeb12b1e 02 40 00 00
eth0
fe8000000000000002e081fffeb12b1e 02 40 20 80
eth0

2.Linux环境下IPv6地址的查看
对于Linux环境,可以使用ifconfig命令来查看IPv6的地址和工作情况,具体命令为:
[root@localhost net]# ifconfig –a
该命令输出结果举例如下:
eth0
Link encap:Ethernet
HWaddr 00:E0:81:B1:2B:1E

inet addr:X.X.X.X
Bcast:X.X.X.X
Mask:255.255.255.128

inet6 addr: 2001:da8:8007:1:2e0:81ff:feb1:2b1e/64Scope:Global

inet6 addr: fe80::2e0:81ff:feb1:2b1e/64 Scope:Link

UP BROADCAST RUNNING MULTICAST
MTU:1500
Metric:1

RX packets:254532256 errors:0 dropped:0 overruns:0 frame:0

TX packets:244110437 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:3737272748 (3.4 GiB)
TX bytes:2766824028 (2.5 GiB)

Interrupt:233
3.验证IPv6网络的连通性
Linux环境下ping6命令验证
键入下面的命令:
[root@localhost net]# ping6 2001:da8:8007:1::3
网络正常连通的情况下,输出结果应该为:
PING 2001:da8:8007:1::3(2001:da8:8007:1::3) 56 data bytes
64 bytes from 2001:da8:8007:1::3: icmp_seq=0 ttl=64 time=1.36 ms
64 bytes from 2001:da8:8007:1::3: icmp_seq=1 ttl=64 time=0.314 ms
64 bytes from 2001:da8:8007:1::3: icmp_seq=2 ttl=64 time=0.303 ms
64 bytes from 2001:da8:8007:1::3: icmp_seq=3 ttl=64 time=0.330 ms
64 bytes from 2001:da8:8007:1::3: icmp_seq=4 ttl=64 time=0.328 ms
64 bytes from 2001:da8:8007:1::3: icmp_seq=5 ttl=64 time=0.231 ms
64 bytes from 2001:da8:8007:1::3: icmp_seq=6 ttl=64 time=0.344 ms
--- 2001:da8:8007:1::3 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5999ms
rtt min/avg/max/mdev = 0.231/0.459/1.369/0.373 ms, pipe 2
关键词:LinuxIPv6

[错误报告] [推荐] [收藏] [打印] [关闭] [返回顶部]

  • 验证码:

最新图片文章

最新文章