本案例适用于如S7006、S7503E、S7506E、S7606、S10510、S10508等S7000、S7500E、S10500系列,且软件版本是V7的交换机 |
交换机作为企业网络内部的网关设备,要实现两个不同网段的终端无状态IPv6上网,并可以互相访问。此案例中,局域网1的内网地址为2001::2/64,网关为2001::1/64,局域网2的内网地址为4001::2/64,网关为4001::1/64,内网PC使用链路本地地址上网。
#
[H3C]interface Vlan-interface1
[H3C-Vlan-interface1] ipv6 address 2001::1/64
[H3C-Vlan-interface1] undo ipv6 nd ra halt
[H3C-Vlan-interface1] ipv6 dhcp server apply pool 1 allow-hint rapid-commit
[H3C-Vlan-interface1] ipv6 nd autoconfig managed-address-flag
[H3C-Vlan-interface1] ipv6 nd autoconfig other-flag
[H3C-Vlan-interface1] quit
#
[H3C]interface Vlan-interface2
[H3C-Vlan-interface1] ipv6 address 3001::1/64
[H3C-Vlan-interface1] undo ipv6 nd ra halt
#
[H3C]Ipv6 dhcp pool 1
[H3C-dhcp6-pool-1]network 2001::/64
[H3C-dhcp6-pool-1]gateway-list 2001::1
[H3C-dhcp6-pool-1]dns-server 1::1
[H3C-dhcp6-pool-1]quit
#
[H3C]interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]port access vlan 2
[H3C-GigabitEthernet1/0/1]quit
#
[H3C] ipv6 route-static 4001:: 64 3001::2
#
[H3C]interface Vlan-interface2
[H3C-Vlan-interface2] ipv6 address 3001::2/64
[H3C-Vlan-interface2] undo ipv6 nd ra halt
[H3C-Vlan-interface2] ipv6 dhcp server apply pool 1 allow-hint rapid-commit
[H3C-Vlan-interface2] ipv6 nd autoconfig managed-address-flag
[H3C-Vlan-interface2] ipv6 nd autoconfig other-flag
[H3C-Vlan-interface2] quit
#
[H3C]interface Vlan-interface3
[H3C-Vlan-interface3] ipv6 address 4001::1/64
[H3C-Vlan-interface3] undo ipv6 nd ra halt
#
[H3C]Ipv6 dhcp pool 1
[H3C-dhcp6-pool-1]network 4001::/64
[H3C-dhcp6-pool-1]gateway-list 4001::1
[H3C-dhcp6-pool-1]dns-server 1::1
[H3C-dhcp6-pool-1]quit
#
[H3C]interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]port access vlan 2
[H3C-GigabitEthernet1/0/1]quit
#
[H3C]interface GigabitEthernet1/0/2
[H3C-GigabitEthernet1/0/2]port access vlan 3
[H3C-GigabitEthernet1/0/2]quit
#
[H3C] ipv6 route-static 2001:: 64 3001::1
[H3C]save force
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作