一、基础配置
SWA:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center ena
Info: Information center is disabled.
[Huawei]sysn SWA
[SWA]vlan batch 10 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWA]ipv6
[SWA]int vlan 10
[SWA-Vlanif10]ipv ena
[SWA-Vlanif10]ipv add 2002::1 64
[SWA-Vlanif10]int vlan 100
[SWA-Vlanif100]ipv ena
[SWA-Vlanif100]ipv add 2001::1 64
[SWA-Vlanif100]qu
[SWA]int g0/0/1
[SWA-GigabitEthernet0/0/1]p l a
[SWA-GigabitEthernet0/0/1]p d v 100
[SWA-GigabitEthernet0/0/1]int g0/0/2
[SWA-GigabitEthernet0/0/1]p l a
[SWA-GigabitEthernet0/0/1]p d v 10
[SWA-GigabitEthernet0/0/1]qu
SWB:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center ena
Info: Information center is disabled.
[Huawei]sysn SWB
[SWB]vlan batch 20 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWB]ipv6
[SWB]int vlan 20
[SWB-Vlanif20]ipv ena
[SWB-Vlanif20]ipv add 2003::1 64
[SWB-Vlanif20]int vlan 100
[SWB-Vlanif100]ipv ena
[SWB-Vlanif100]ipv add 2001::2 64
[SWB-Vlanif100]qu
[SWB]int g0/0/1
[SWB-GigabitEthernet0/0/1]p l a
[SWB-GigabitEthernet0/0/1]p d v 100
[SWB-GigabitEthernet0/0/1]int g0/0/2
[SWB-GigabitEthernet0/0/1]p l a
[SWB-GigabitEthernet0/0/1]p d v 20
[SWB-GigabitEthernet0/0/1]qu
二、静态路由
SWA:
[SWA]ipv6 route-static 2003:: 64 2001::2
SWB:
[SWB]ipv6 route-static 2002:: 64 2001::1
验证:
三、默认路由
SWA:
[SWA]ipv6 route-static :: 0 2001::2
SWB:
[SWB]ipv6 route-static :: 0 2001::1
四、RIPng路由
SWA:
[SWA]ripng 1
[SWA-ripng-1]qu
[SWA]int vlan 10
[SWA-Vlanif10]ripng 1 enable
[SWA-Vlanif10]int vlan 100
[SWA-Vlanif100]ripng 1 enable
[SWA-Vlanif100]qu
SWB:
[SWB]ripng 1
[SWB-ripng-1]qu
[SWB]int vlan 20
[SWB-Vlanif20]ripng 1 ena
[SWB-Vlanif20]int vlan 100
[SWB-Vlanif100]ripng 1 ena
[SWB-Vlanif100]qu
五、OSPFv3路由
SWA:
[SWA]ospfv3 1
[SWA-ospfv3-1]router-id 1.1.1.1
[SWA-ospfv3-1]qu
[SWA]int vlan 10
[SWA-Vlanif10]ospfv3 1 ar 0
[SWA-Vlanif10]int vlan 100
[SWA-Vlanif100]ospfv3 1 ar 0
[SWA-Vlanif100]qu
SWB:
[SWB]ospfv3 1
[SWB-ospfv3-1]router-id 2.2.2.2
[SWB-ospfv3-1]qu
[SWB]int vlan 20
[SWB-Vlanif20]ospfv 1 ar 0
[SWB-Vlanif20]int vlan 100
[SWB-Vlanif100]ospfv 1 ar 0
[SWB-Vlanif100]qu