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 configuration commands for H3C switches

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

one。 User configuration:

System-view

[H3C] super password H3C sets user hierarchical password

[H3C] undo super password deletes a user's hierarchical password

[H3C] localuser bigheap 123456 1 Web network management user settings, 1 (default) is administrative user, default admin,admin

[H3C] undo localuser bigheap deletes Web network management user

[H3C] user-interface aux 0 only supports 0

[H3C-Aux] idle-timeout 250 sets the timeout to 2 minutes and 50 seconds. 0 means no timeout. The default is 5 minutes.

[H3C-Aux] undo idle-timeout restores default values

[H3C] user-interface vty 0 only supports 0 and 1

[H3C-vty] idle-timeout 250 sets the timeout to 2 minutes and 50 seconds. 0 means no timeout. The default is 5 minutes.

[H3C-vty] undo idle-timeout restores default values

[H3C-vty] set authentication password 123456 sets the telnet password, which must be set

[H3C-vty] undo set authentication password cancel password

[H3C] display users display user

[H3C] display user-interface displays user interface status

two。 System IP configuration:

[H3C] vlan 20

[H3C] management-vlan 20

[H3C] interface vlan-interface 20 creates and enters the management VLAN

[H3C] undo interface vlan-interface 20 removes the management VLAN interface

[H3C-Vlan-interface20] ip address 192.168.1.2 255.255.255.0 configure management VLAN interface static IP address (default is 192.168.0.234)

[H3C-Vlan-interface20] undo ip address deletes IP address

[H3C-Vlan-interface20] ip gateway 192.168.1.1 specifies the default gateway (default no gateway address)

[H3C-Vlan-interface20] undo ip gateway

[H3C-Vlan-interface20] shutdown shuts down the interface

[H3C-Vlan-interface20] undo shutdown is enabled

[H3C] display ip displays information about managing VLAN interface IP

[H3C] display interface vlan-interface 20 views interface information for managing VLAN

Debugging ip enables IP debugging

Undo debugging ip

3. DHCP client configuration:

[H3C-Vlan-interface20] the ip address dhcp-alloc management VLAN API obtains the IP address through DHCP

[H3C-Vlan-interface20] undo ip address dhcp-alloc cancel

[H3C] display dhcp displays DHCP customer information

Debugging dhcp-alloc enables DHCP debugging

Undo debugging dhcp-alloc

four。 Port configuration:

[H3C] interface Ethernet0/3

[H3C-Ethernet0/3] shutdown

[H3C-Ethernet0/3] speed 100rate, which can be 10pm 100j1000 and auto (default)

[H3C-Ethernet0/3] duplex full duplex, can be half,full and auto (default) optical port and cannot be configured after convergence

[H3C-Ethernet0/3] flow-control enables traffic control. Default is off.

[H3C-Ethernet0/3] broadcast-suppression 20 sets the percentage of broadcast suppression to 20%. It is advisable to have 5, 10, 20, 100, and the default is 100. At the same time, multicast and unknown unicast are also affected.

[H3C-Ethernet0/3] loopback internal inner ring test

[H3C-Ethernet0/3] loopback external outer loop test, which needs to be plugged into the self-loop head, must be in full-duplex or self-negotiation mode

[H3C-Ethernet0/3] port link-type trunk sets the link type to trunk, can be access (default), trunk

[H3C-Ethernet0/3] port trunk pvid vlan 20 sets 20 as the default VLAN for this trunk, and defaults to 1

(the PVID on both ends of the trunk line must be the same)

[H3C-Ethernet0/3] port access vlan 20 adds the current access port to the specified VLAN

[H3C-Ethernet0/3] port trunk permit vlan all allows all VLAN to pass through the current trunk port, and this command can be used multiple times

[H3C-Ethernet0/3] mdi auto sets Ethernet port as automatic monitoring, normal (default) as straight-through line, and across as cross line.

[H3C] link-aggregation Ethernet 0amp 1 to Ethernet 0ax 4 adds 1-4 ports to the aggregation group, 1 master port, both sides need to be configured at the same time, port mirroring is set and ports isolated from the port cannot be trunked.

[H3C] undo link-aggregation Ethernet 0ram 1 deletes the aggregation group

[H3C] link-aggregation mode egress configures the port trunking mode to share the load according to the destination MAC address, which can be selected as ingress,egress and both, and defaults to both

[H3C] monitor-port Ethernet 0ram 2 sets this port as a mirror port, the mirror port must be set first, and the mirrored port must be deleted when it is deleted, and they cannot be in the same port. The port cannot be in the aggregation group. When a new mirror port is set, the new image will replace the old and be mirrored unchanged.

[H3C] mirroring-port Ethernet 0 to Ethernet 0 both sets ports 3 and 4 as mirrored ports, both to monitor received and sent messages, inbound to monitor only received messages, and outbound to monitor only sent messages.

[H3C] display mirror

[H3C] display interface Ethernet 0/3

Reset counters clears statistics for all ports

[H3C] display link-aggregation Ethernet 0ram 3 displays trunking information

[H3C-Ethernet0/3] virtual-cable-test diagnoses the circuit status of the port

5. VLAN configuration:

[H3C] vlan 2

[H3C] undo vlan all deletes all VLAN except default VLAN, default VLAN cannot be deleted

[H3C-vlan2] port Ethernet 0 to Ethernet 4 to Ethernet 0 bank 7 adds ports 4 to 7 to VLAN2. This command can only be used to add access ports, not trunk or hybrid ports.

[H3C-vlan2] port-isolate enable enables port isolation in VLAN and cannot be forwarded at layer 2. This feature is not enabled by default.

[H3C-Ethernet0/4] port-isolate uplink-port vlan 2 sets 4 as the isolated uplink port of VLAN2, which is used to forward layer 2 data. Only one uplink port can be configured. If it is trunk, it is recommended to allow all VLAN to pass, and isolation cannot be configured at the same time as aggregation.

[H3C] display vlan all displays details of all VLAN

S1550E supports port-based VLAN, which is realized by creating different user-group. A port can belong to multiple user-group, ports that do not belong to the same user-group cannot communicate with each other, and a maximum of 50 user-group is supported.

[H3C] user-group 20 creates user-group 20. Only user-group 1 exists by default.

[H3C-UserGroup20] port Ethernet 0 to Ethernet 4 to Ethernet 0ax 7 adds ports 4 to 7 to the VLAN20, which initially belong to user-group 1

[H3C] display user-group 20 displays information about user-group 20

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

Database

Wechat

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

12
Report