本案例適用於如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
該案例暫時沒有網友評論
✖
案例意見反饋
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作