![Huawei S6700 Series Configuration Manual Download Page 33](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517033.webp)
vlan batch 20 50
#
interface Vlanif20
ip address 1.1.4.6 255.255.255.252
#
interface Vlanif50
ip address 1.1.3.1 255.255.255.0
#
interface XGigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface XGigabitEthernet0/0/2
port hybrid pvid vlan 50
port hybrid untagged vlan 50
#
ip route-static 0.0.0.0 0.0.0.0 1.1.4.5
#
return
1.6.2 Example for Configuring IPv6 Static Routes
Networking Requirements
, the prefix length of all the IPv6 addresses is 64 bits. You need to
configure IPv6 static routes between the Switches to ensure that all the PCs and Switches can
communicate with each other. The VLANIF interfaces connecting the Switches to PCs need to
be configured with IPv6 global unicast addresses. The VLANIF interfaces connecting the
Switches need to be configured with IPv6 link-local addresses.
Figure 1-2
Networking diagram for configuring IPv6 static routes
SwitchA
XGE0/0/1
XGE0/0/1
XGE0/0/2
XGE0/0/1
XGE0/0/2
XGE0/0/2
XGE0/0/3
PC2
PC1
PC3
2::2/64
SwitchC
SwitchB
2::1/64
1::1/64
3::1/64
1::2/64
3::2/64
VLANIF10
VLANIF50
VLANIF40
VLANIF20
VLANIF20
VLANIF30
VLANIF40
FE80::218:20FF:FE00:83
FE80::218:20FF:FE00:80
FE80::218:20FF:FE00:81
FE80::218:20FF:FE00:82
Device name
Interface
VLANIF interface
IP address
Switch A
XGE0/0/2
VLANIF 10
1::1/64
Switch A
XGE0/0/1
VLANIF 20
Generated automatically
Switch B
XGE0/0/1
VLANIF 20
Generated automatically
Switch B
XGE0/0/2
VLANIF 40
Generated automatically
Switch B
XGE0/0/3
VLANIF 30
2::1/64
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.
14