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

Common commands of Huawei switch

2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Show all configuration commands: display current-configuration

Batch create vlan commands:

Execute the command vlan batch under the system view to create VLAN in batch.

Create 10 consecutive VLAN:VLAN11 to VLAN20 in batch.

System-view [HUAWEI] vlan batch 11 to 20

Batch creation of 10 discontiguous VLAN:VLAN10, VLAN15 to VLAN19, VLAN25, VLAN28 to VLAN30.

System-view [HUAWEI] vlan batch 10 15 to 19 25 28 to 30

Description:

When creating discontiguous VLAN in batches, you can enter up to 10 discontiguous VLAN or VLAN segments at a time, and more than 10 can be configured using this command multiple times. For example, vlan batch 10 15 to 19 25 28 to 30 is a total of 4 discontiguous VLAN segments.

Change trunk to access

Int gi0/0/1

Undo port trunk allow-pass vlan 2-4094

Undo port link-type trunk

Vlan 20

Port gi0/0/1

Change access to trunk

Int gi0/0/1

Undo port default vlan

Undo port link-type

Port link-type trunk

Trunk allow-pass vlan 2-4094

Add the port to the appropriate VLAN

Password: admin123

"hexin-1": sys

Enter privileged mode: vlan 100

Port Gig 1-0-4 (PORT 4 joined VLAN100

QUIT launches to user mode

SAVE

Y

Add vlan command and two core hot standby configuration virtual ip commands to the core switch

Password: admin123

"hexin-1": sys

Enter privileged mode: vlan 200

Int vlan 200

Ip add 10.200.0.2 255.255.0.0 configuration: vlan200 management ip address can also be used as PC gateway address

Vrrp vrid 200 virtual-ip 10.200.0.1 configure virtual ip management address

Vrrp vrid 200 priority 120

Vrrp vrid 200 preempt-mode timer delay 20

Vrrp vrid 200 track interface gigabitethernet 1-0-21 reduced 100 configuration switch port 21-convinced AF-1020 firewall ETH2 interface

Vrrp vrid 200 track interface gigabitethernet 1-0-0 reduced 100 configure switch port 0-aggregation switch uplink port

At the same time, core switch 2 "hexin-2" should also be configured with the following command:

Vlan 200

Int vlan 200

Ip add 10.200.0.3 255.255.0.0

Vrrp vrid 200 irtual-ip 10.200.0.1

Port joins vlan

Int vlan 80

Port gi1/0/2

Batch add port command

Vlan 100

Port g0/0/1 to 0/0/20

Add trunk in batch

Inte range g 1-0-12 to gi 1-0-19

Cancel the command

Undo + command

Restart command

Reboot

Empty configuration command

Reset saved-configuration

Enter Y enter

The switch needs to be rebooted after initialization to take effect.

Enter reboot

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: 219

*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

Network Security

Wechat

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

12
Report