Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Principle and Application of Huawei trunk.access

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Experimental environment: Huawei simulator

1. Add vlan10,VLAN20 to switch 1

Vlan 10

Quit

Vlan 20

Quit

Interface g0/0/1

Port link-type access

Port default vlan 10

Quit

Interface g0/0/2

Port link-type access

Port access vlan 20

Configure layer 3 switch 2

Vlan 10

Quit

Vlan 20

Quit

Interface g0/0/1

Port link-type access

Port default vlan 10

Quit

Intface g0/0/2

Port link-type access

Port default vlan 20

Quit

3, configure the trunk link

On switch 2

Interface g0/0/24

Port link-type trunk

Port trunk allow-pass vlan all

On switch 1

Interface g0/0/24

Port link-type trunk

Port trunk allow-paas vlan

4, verify: ping192.168.10.2

The idea of configuring Trunk links: (Huawei)

1. Configure the link type of the port

Interface (port)

Port link-type trunk

2. Set the VLAN allowed on the Trunk link

Interface (port)

Port trunk allow-pass vlan all

Configure access ideas

Huawei switch configuration VLAN:

1. Create a VLAN

[sw1] vlan 10 / / create a VLAN and enter VLAN 10

[sw1-vlan10] description AAA / / configure a name for vlan

2. Configure port mode

[sw1] interface gi0/0/1

[sw1-gi0/0/1] port link-type access / / designated port is in access mode

3. Put the port into the specified VLAN

[sw1] interface gi0/0/1

[sw1-gi0/0/1] port default vlan10 / / put the port into the vlan10

3. View

Display port vlan

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report