Huawei Quidway S7700 Configuration Manual - Ethernet page 145

Smart routing switch
Hide thumbs Also See for Quidway S7700:
Table of Contents

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet
# Add GE1/0/1 to VLAN 10 and VLAN 20 so that GE1/0/1 allows packets of VLAN 10 and
VLAN 20 to pass through.
[Switch] interface gigabitethernet 1/0/1
[Switch-GigabitEthernet1/0/1] port link-type hybrid
[Switch-GigabitEthernet1/0/1] port hybrid untagged vlan 10 20
[Switch-GigabitEthernet1/0/1] quit
# Add GE1/0/2 to VLAN 10 so that GE1/0/2 allows packets of VLAN 10 to pass through.
[Switch] interface gigabitethernet 1/0/2
[Switch-GigabitEthernet1/0/2] port link-type trunk
[Switch-GigabitEthernet1/0/2] port trunk allow-pass vlan 10
[Switch-GigabitEthernet1/0/2] quit
# Add GE1/0/3 to VLAN 20 so that GE1/0/3 allows packets of VLAN 20 to pass through.
[Switch] interface gigabitethernet 1/0/3
[Switch-GigabitEthernet1/0/3] port link-type trunk
[Switch-GigabitEthernet1/0/3] port trunk allow-pass vlan 20
[Switch-GigabitEthernet1/0/3] quit
Step 5 Verify the configuration.
After completing the configuration, run the display protocol-vlan interface all command, and
you can view the configuration of protocol-based VLANs on GE1/0/1. For example:
<Switch> display protocol-vlan interface all
-------------------------------------------------------------------------------
Interface
-------------------------------------------------------------------------------
GigabitEthernet1/0/1
GigabitEthernet1/0/1
----End
Configuration Files
l
Issue 01 (2011-07-15)
Configuration file of the Switch
#
sysname Switch
#
vlan batch 10 20
#
vlan 10
protocol-vlan 0 ipv4
vlan 20
protocol-vlan 0 ipv6
#
interface GigabitEthernet1/0/1
port hybrid untagged vlan 10 20
protocol-vlan vlan 10 0 priority 5
protocol-vlan vlan 20 0 priority 6
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 20
#
return
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
VLAN
Index
10
0
20
0
3 VLAN Configuration
Protocol Type
ipv4
ipv6
Priority
5
6
128

Advertisement

Table of Contents
loading

This manual is also suitable for:

Quidway s9300

Table of Contents