实操命令如下:
三层路由器 vlan1
interface Vlan-interface1
ip address 10.10.1.251 255.255.255.0
undo dhcp select server
ipv6 address 2001::1/64
undo ipv6 nd ra halt
VLAN IPV4 基础上配置 IPV6
interface Vlan-interface99
ip address 10.10.99.254 255.255.255.0
undo dhcp select server
ipv6 address 9001::1/64
interface Vlan-interface150
ip address 10.10.150.254 255.255.255.0
undo dhcp select server
ipv6 address 1501::1/64
interface Vlan-interface180
ip address 10.10.180.254 255.255.255.0
undo dhcp select server
ipv6 address 1801::1/64
服务器配置说明:
修改增加 IPV6 和修改IPV4一样 有很多方法
下面是nmcli 当然通过nmtui 图形化更方便
[[email protected] /root]
#nmcli connection modify ‘bond0’ ipv6.address ‘1801::43/64’ ipv6.method manual
以下是华三交换机的部分测试
- 配置步骤
(1) 配置Switch A
手工指定VLAN接口2的全球单播地址。
system-view
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ipv6 address 3001::1/64
[SwitchA-Vlan-interface2] quit
手工指定VLAN接口1的全球单播地址,并允许其发布RA消息。(缺省情况下,所有的接口不会发布RA消息)
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ipv6 address 2001::1/64
[SwitchA-Vlan-interface1] undo ipv6 nd ra halt
[SwitchA-Vlan-interface1] quit
(2) 配置Switch B
配置VLAN接口2的全球单播地址。
system-view
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ipv6 address 3001::2/64
[SwitchB-Vlan-interface2] quit
配置IPv6静态路由,该路由的目的地址为2001::/64,下一跳地址为3001::1。
[SwitchB] ipv6 route-static 2001:: 64 3001::1
(3) 配置Host
在Host上安装IPv6,根据IPv6邻居发现协议自动配置IPv6地址。
从Switch A上查看端口Ten-GigabitEthernet1/0/2的邻居信息。
[SwitchA] display ipv6 neighbors interface ten-gigabitethernet 1/0/2
Type: S-Static D-Dynamic O-Openflow R-Rule IS-Invalid static
IPv6 address MAC address VID Interface State T Aging
FE80::215:E9FF:FEA6:7D14 0015-e9a6-7d14 1 XGE1/0/2 STALE D 1238
2001::15B:E0EA:3524:E791 0015-e9a6-7d14 1 XGE1/0/2 STALE D 1248
通过上面的信息可以知道Host上获得的IPv6全球单播地址为2001::15B:E0EA:3524:E791。
H3C二层交换机路由配置信息
ip route-static 0.0.0.0 0 Vlan-interface1 10.10.1.251 IPV4下一跳信息
ipv6 route-static :: 0 2001::1 IPV6 下一跳信息
VLAN1 信息
interface Vlan-interface1
ip address 10.10.1.253 255.255.255.0
undo dhcp select server
ipv6 address 2001::253/64
杭州沃趣科技股份有限公司(杨培灿)