EasyManua.ls Logo

Huawei quidway s7700 - Example for Configuring IP Subnet-Based VLAN Assignment

Huawei quidway s7700
648 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
<Quidway> system-view
[Quidway] vlan batch 10 100
# Set the PVID of interfaces and add interfaces to the VLANs.
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port hybrid pvid vlan 100
[Quidway-GigabitEthernet1/0/1] port hybrid untagged vlan 10
[Quidway-GigabitEthernet1/0/1] quit
[Quidway] interface gigabitethernet 1/0/2
[Quidway-GigabitEthernet1/0/2] port hybrid tagged vlan 10
[Quidway-GigabitEthernet1/0/2] quit
# Associate MAC addresses of PC1, PC2, and PC3 with VLAN 10.
[Quidway] vlan 10
[Quidway-Vlan10] mac-vlan mac-address 22-22-22
[Quidway-Vlan10] mac-vlan mac-address 33-33-33
[Quidway-Vlan10] mac-vlan mac-address 44-44-44
[Quidway-Vlan10] quit
# Enable MAC address-based VLAN assignment on GE1/0/1.
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] mac-vlan enable
[Quidway-GigabitEthernet1/0/1] quit
Step 2 Verify the configuration.
PC1, PC2, and PC3 can access the intranet, whereas PCs of non-employees cannot access the
intranet.
----End
Configuration Files
Configuration file of the Switch
#
sysname Quidway
#
vlan batch 10 100
#
vlan 10
mac-vlan mac-address 0022-0022-0022
mac-vlan mac-address 0033-0033-0033
mac-vlan mac-address 0044-0044-0044
#
interface GigabitEthernet1/0/1
port hybrid pvid vlan 100
port hybrid untagged vlan 10
mac-vlan enable
#
interface GigabitEthernet1/0/2
port hybrid tagged vlan 10
#
return
3.12.3 Example for Configuring IP Subnet-based VLAN
Assignment
After a LAN is divided into VLANs based on IP subnets, frames from a certain network segment
or IP address are transmitted in a specified VLAN. This reduces the configuration workload of
network administrators and facilitates management.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 3 VLAN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
122

Table of Contents

Other manuals for Huawei quidway s7700

Related product manuals