Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces
-
Upload
ipmax-srl -
Category
Technology
-
view
830 -
download
1
description
Transcript of Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces
![Page 1: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/1.jpg)
HUAWEI QUIDWAY S5700 HOW-TOI M P L E M E N T I N G I N T E R -V L A N CO M M U N I C AT I O N U S I N G V L A N I F
I N T E R FAC E Swww.ipmax.it
![Page 2: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/2.jpg)
GENERAL INFOS AND APPLICATIONENVIRONMENT
S5700 Layer 3 switch can replace a router to implement communication between VLANs using VLANIF interfaces. Describing this brief procedure we will assume that departments of an enterprise are located on different network segments and use the same services, such as Internet access and VoIP. The departments are in different VLANs, so inter-VLAN communication must be implemented.In this semplified network environment, as shown in the picture, Department 1 and Department 2 use the same service, but they belong to different VLANs (vlan 10 and vlan 20) and network segments. Users in Department 1 and Department 2 need to communicate with each other.
SwitchA
SwitchB
![Page 3: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/3.jpg)
CREATING VLANS ON THE SWITCHES FOR DIFFERENT DEPARTMENTS
<SwitchB> system-view
[SwitchB] vlan batch 10 20
1. Create vlans on SwitchBEnter the configuration view
Create vlan 10 and vlan 20
2. Create vlans on SwitchA
<SwitchA> system-view
[SwitchA] vlan batch 10 20
Enter the configuration view
Create vlan 10 and vlan 20
![Page 4: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/4.jpg)
ADDING LAYER 2 INTERFACES TO THE VLANS (1)
3. Add layer 2 interfaces to vlans of SwitchB
[SwitchB] interface gigabitethernet 0/0/1[SwitchB-GigabitEthernet0/0/1] port link-type trunk[SwitchB-GigabitEthernet0/0/1] port trunk allow-passvlan 10 20[SwitchB-GigabitEthernet0/0/1] quit
Enter the interfaceview
Configure the porttype
Configure the vlans for the port
Exit the interfaceview
![Page 5: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/5.jpg)
ADDING LAYER 2 INTERFACES TO THE VLANS (2)
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type trunk
[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan10 20
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] port link-type access
[SwitchA-GigabitEthernet0/0/2] port default vlan 10
[SwitchA-GigabitEthernet0/0/2] quit
[SwitchA] interface gigabitethernet 0/0/3
[SwitchA-GigabitEthernet0/0/3] port link-type access
[SwitchA-GigabitEthernet0/0/3] port default vlan 20
[SwitchA-GigabitEthernet0/0/3] quit
4. Add layer 2 interfaces to vlans of SwitchA
Enter the interface view
Configure the port type
Configure the vlans for the port
Exit the interface view
![Page 6: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/6.jpg)
CREATING VLANIF INTERFACES AND CONFIGURING IP ADDRESSES ON LAYER 3 SWITCH (SWITCHB)
5. Create vlanif interfaces and assign IP address on SwitchB
[SwitchB] interface vlanif 10
[SwitchB-Vlanif10] ip address 10.10.10.1 24
[SwitchB-Vlanif10] quit
[SwitchB] interface vlanif 20
[SwitchB-Vlanif20] ip address 20.20.20.1 24
[SwitchB-Vlanif20] quit
Create the vlanif and enter the vlanif view
Exit the vlanif view
Assign the IP address to the vlanif
![Page 7: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/7.jpg)
CHECKING THE CONFIGURATION6. Check the configuration on SwitchB
[SwitchB] display current configuration#sysname SwitchB
#vlan batch 10 20
#interface Vlanif10ip address 10.10.10.1 255.255.255.0
#interface Vlanif20ip address 20.20.20.1 255.255.255.0
#interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 20
#return
![Page 8: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/8.jpg)
CHECKING THE CONFIGURATION7. Check the configuration on SwitchA
[SwitchA] display current configuration#sysname SwitchA#vlan batch 10 20#interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/2port link-type accessport default vlan 10#interface GigabitEthernet0/0/3port link-type accessport default vlan 20#return
![Page 9: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/9.jpg)
MORE NEEDS?
See hints on www.ipmax.itOr email us your questions to [email protected]
You can buy our Remote Support assistance (1h, 4hs or 8hs pack) via PAYPALby using your Teamviewer account.Contact us for any info!
![Page 10: Huawei switch how to - implementing inter-vlan communication using VLANIF interfaces](https://reader036.fdocuments.net/reader036/viewer/2022081715/54039e688d7f72e04c8b483b/html5/thumbnails/10.jpg)
IPMAX
IPMAX is a Huawei GOLD Partner in Italy.IPMAX is the ideal partner for companies seeking quality in products and services. IPMAX guarantees method and professionalism to support its customers in selecting technologies with the best quality / price ratio, in the design, installation, commissioning and operation.
IPMAX srlVia Ponchielli, 420063 Cernusco sul Naviglio (MI) – Italy+39 02 9290 9171