![Huawei S6700 Series Configuration Manual Download Page 35](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517035.webp)
[SwitchA]
ipv6
[SwitchA]
interface vlanif 10
[SwitchA-Vlanif10]
ipv6 enable
[SwitchA-Vlanif10]
ipv6 address 1::1/64
[SwitchA-Vlanif10]
quit
[SwitchA]
interface vlanif 20
[SwitchA-Vlanif20]
ipv6 enable
[SwitchA-Vlanif20]
ipv6 address auto link-local
[SwitchA-Vlanif20]
quit
The configurations of Switch B and Switch C are similar to the configuration of Switch A and
are not mentioned here.
Step 3
Configure the PCs.
Configure the default gateway addresses of PC1, PC2, and PC3 to 1.1.1.1, 1.1.2.1, and 1.1.3.1
respectively.
Step 4
Configure IPv6 static routes.
# Configure a default IPv6 route on Switch A.
[Switch A]
ipv6 route-static :: 0 vlanif20 FE80::218:20FF:FE00:80
# Configure two IPv6 static routes on Switch B.
[Switch B]
ipv6 route-static 1:: 64 vlanif20 FE80::218:20FF:FE00:81
[Switch B]
ipv6 route-static 3:: 64 vlanif40 FE80::218:20FF:FE00:82
# Configure a default IPv6 route on Switch C.
[Switch C]
ipv6 route-static :: 0 vlanif40 FE80::218:20FF:FE00:83
Step 5
Configure the addresses and the gateway addresses on the PCs.
Assign the IPv6 addresses to the PCs according to the networking diagram. Set the default
gateway address on PC1 to 1::1, the default gateway address on PC2 to 2::1, and the default
gateway address on PC3 to 3::1.
Step 6
Verify the configuration.
# Check the IPv6 routing table of Switch A.
[Switch A]
display ipv6 routing-table
Routing Table :
Destinations : 5 Routes : 5
Destination : :: PrefixLength : 0
NextHop : FE80::218:20FF:FE00:80 Preference : 60
Cost : 0 Protocol : Static
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif20 Flags : D
Destination : ::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : 1:: PrefixLength : 64
NextHop : 1::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Vlanif10 Flags : D
Destination : 1::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
1 IP Static Route Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
16