以本人的机器为例,网卡为eth3,IPv6地址就选2000::ffff
[root@lenovo-m8400-01 ~]# uname -r
2.6.32-431.el6.x86_64
[root@lenovo-m8400-01 ~]# ifconfig eth3
eth3 Link encap:Ethernet HWaddr 00:1B:21:21:CF:DD
inet6 addr: 2000::ffff/64 Scope:Global
inet6 addr: 2000::21b:21ff:fe21:cfdd/64 Scope:Global
inet6 addr: fe80::21b:21ff:fe21:cfdd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100318 errors:0 dropped:0 overruns:0 frame:0
TX packets:150174 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19520814 (18.6 MiB) TX bytes:101293129 (96.6 MiB)
Interrupt:19 Memory:f7da0000-f7dc0000
- 修改ifcfg-eth3
# vim /etc/sysconfig/network-scripts/ifcfg-eth3