Huawei S Series Quick Configuration page 34

Campus switches
Hide thumbs Also See for S Series:
Table of Contents

Advertisement

b. Configure the aggregation/core switch (CORE1).
Create the VLANs for CORE1 to communicate with the access switches, CORE2, and
1
egress router.
<HUAWEI> system-view
[HUAWEI] sysname CORE1
[CORE1] vlan batch 10 20 30 40 50 100 300
Configure user-side interfaces and VLANIF interfaces. Communication between
2
departments uses VLANIF interfaces. For example, CORE1 connects to ACC1
through GE0/0/1. The configurations on other interfaces are not mentioned here.
[CORE1] interface GigabitEthernet0/0/1
[CORE1-GigabitEthernet0/0/1] port link-type trunk
for VLAN transparent transmission.
[ CORE1-GigabitEthernet0/0/1]
GE0/0/1 to transparently transmit service VLANs on ACC1.
[CORE1-GigabitEthernet0/0/1] quit
[CORE1] interface Vlanif 10
A to communicate with department B through Layer 3.
[CORE1-Vlanif10] ip address 192.168.10.1 24
[CORE1-Vlanif10] quit
[CORE1] interface Vlanif 20
B to communicate with department A through Layer 3.
[CORE1-Vlanif20] ip address 192.168.20.1 24
[CORE1-Vlanif20] quit
Configure interfaces connecting to the egress router and VLANIF interfaces.
3
[CORE1] interface GigabitEthernet 0/0/7
[CORE1-GigabitEthernet0/0/7] port link-type access
[CORE1-GigabitEthernet0/0/7] port default vlan 100
[CORE1-GigabitEthernet0/0/7] quit
[CORE1] interface Vlanif 100
to communicate with the router at Layer 3.
[CORE1-Vlanif100] ip address 172.16.1.1 24
[CORE1-Vlanif100] quit
Configure interfaces that directly connect to CORE2 and configure a VLANIF interface.
4
[CORE1] interface gigabitethernet 0/0/5
[CORE1-GigabitEthernet0/0/5] port link-type access
[CORE1-GigabitEthernet0/0/5] port default vlan 300
[CORE1-GigabitEthernet0/0/5] quit
[CORE1] interface Vlanif 300
[CORE1-Vlanif300] ip address 172.16.3.1 24
[CORE1-Vlanif300] quit
//Set the switch name to CORE1.
//Create VLANs in a batch.
//Set the interface type to Trunk
port trunk allow-pass vlan 10 20
//Configure VLANIF 10 to allow department
//Configure VLANIF 20 to allow department
//Configure a VLANIF interface to allow CORE1
31
//Configure
//Set the access mode.
//Set the access mode.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S2750S5700

Table of Contents