Debian IPv6 Networking Configuration
by Vivek Gite ·
How do I configure static IPv6 networking under Debian Linux?
You need to add networking configuration to /etc/network/interfaces file as follows:
a) Ipv6 Address
b) Ipv6 Gateway
c) Netmask
Out Sample Debian Linux Ipv6 Configuration
- Ipv6 Address IP: 2607:f0d0:2001:000a:0000:0000:0000:0002/64
- Ipv6 Gateway IP: 2607:f0d0:2001:000a:0000:0000:0000:0001
- Interface name: eth0
- IPv6 Type: Static
Open /etc/network/interfaces file, enter:
# vi /etc/network/interfaces
Append configuration as follows:
#IPV6 static configuration
iface eth0 inet6 static
pre-up modprobe ipv6
address 2607:f0d0:2001:000a:0000:0000:0000:0002
netmask 64
gateway 2607:f0d0:2001:000a:0000:0000:0000:0001
# END IPV6 configuratio
Save and close the file. Restart the networking:
# /etc/init.d/networking restart
Verify IPv6 networking
Print your current routing:
# ip -6 route show
Ping Ipv6 enabled website:
# ping6
# ping6 ipv6.google.com
Sample output:
PING () 56 data bytes
64 bytes from : icmp_seq=1 ttl=60 time=65.2 ms
64 bytes from : icmp_seq=2 ttl=60 time=64.0 ms
64 bytes from : icmp_seq=3 ttl=60 time=64.0 ms
64 bytes from : icmp_seq=4 ttl=60 time=64.0 ms
64 bytes from : icmp_seq=5 ttl=60 time=63.9 ms
配置MTUifconfig eth0 mtu 1300Gateway 不是 随便指定的,没有分配出去的IPV6的地址是无法添加默认路由的,只有001开始的地址,即2,3开头的地址。
The initial assignment of IPv6 address space is as follows:
Allocation Prefix Fraction of
(binary) Address Space
----------------------------------- -------- -------------
Unassigned (see Note 1 below) 0000 0000 1/256
Unassigned 0000 0001 1/256
Reserved for NSAP Allocation 0000 001 1/128 [RFC1888]
Unassigned 0000 01 1/64
Unassigned 0000 1 1/32
Unassigned 0001 1/16
Global Unicast 001 1/8 [RFC2374]
Unassigned 010 1/8
Unassigned 011 1/8
Unassigned 100 1/8
Unassigned 101 1/8
Unassigned 110 1/8
Unassigned 1110 1/16
Unassigned 1111 0 1/32
Unassigned 1111 10 1/64
Unassigned 1111 110 1/128
Unassigned 1111 1110 0 1/512
Link-Local Unicast Addresses 1111 1110 10 1/1024
Site-Local Unicast Addresses 1111 1110 11 1/1024
Multicast Addresses 1111 1111 1/256
================wireshark-===============
关于wireshark:
首先,你得确认自己安装了winpcap(最好下载一个最新版本:官方下载,这会官方好像打不开,也可以华军下载),然后
(1)如果你使用的是Linux、Ubuntu系统,请用 >$ su Administrator命令切换到拥有最高权限的帐号,然后再输入命令:“net start npf”(如果不行自己查找类似命令)。
来源:(http://blog.sina.com.cn/s/blog_4bfd07180100e3ar.html) - Wireshark "The NPF driver isn’t running…"_草泥马骑士_新浪博客
(2)如果使用的是windows xp\me,请使用管理员帐号登录,然后打开cmd,输入命令:“net start npf”,会提示打开驱动服务成功。
(3)如果使用的是Windows vista或者跟我一样试用的Windows 7,请找到“C:\Windows\System32”下的 cmd.exe 文件,右键点击选择“Run as administrator”,然后在命令行模式下输入命令“net start npf”,即可成功打开NPF的驱动,应该就是我前面找到过的 npf.sys 文件被打开了。
最后,再重新打开Wireshark, "bingo" 终于能正常运行了。
阅读(2194) | 评论(0) | 转发(0) |