1. Enter the configuration mode and view the current configuration file information

Enter the command: system-view \\ into the configuration mode

Enter the command: display current-configuration \\ to view the current configuration file information

2. Turn on the Telnet function

Enter the command: telnet server enable

3. Set the user name and password for logging in to Telnet locally

Enter the command: local-user XiJiaojipei //Set the user name

password simple 12345678 //Set password

4. Set the login type of the local user to Telnet

Enter the command: service-type telnet

5. View local interface information

Enter the command: display interface brief

6. Divide the corresponding VLAN information and set VLAN aliases

Enter the command: VLAN X //Create the corresponding VLAN

Enter the command: name X //Set the corresponding VLAN alias

Enter the command: display vlan brief //View the created VLAN and its related information

7. Divide the designated interface into the corresponding VLAN and configure the VLAN management address

Enter the command: port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/4

Enter the command: ip address 192.168.2.253 255.255.255.0 \\Configure the VLAN20 management address as 192.168.2.253 and the subnet mask 255.255.255.0

Remark:

To delete the newly configured IP address, enter the command: undo ip address

8. View the divided interface and designated VLAN information

Enter the command: display interface brief

9. Set interfaces 21 to 24 as switch cascade interfaces

Enter the command: The first port link-type trunk //Set the connector type to trunk, which means port aggregation

The second port trunk permit vlan all //Set the pass mode of the interface to all VLANs

Article 3 dhcp snooping trust //Allow DHCP service transparent transmission

Note: In order for the packets of VLAN 10 and VLAN 20 on the new switch to be sent to the old switch, configure the link type from GigabitEthernet 1/0/21 to GigabitEthernet 1/0/24 to Trunk, and allow the packets of VLAN 10 and VLAN 20 to pass .

10. View the results of the trunk interface settings

Enter the command: display interface brief

11. Set the switch name to the specified name

Enter the command: sysname YDxj-s5130

12. Turn on DHCP service and lldp service

Enter the command: dhcp enable //Enable DHCP service

lldp global enable //Enable the LLDP function

13. Turn on the POE power supply function of the designated port and view it

Enter the command: POE enable //Enable the POE function of the specified port

14. Configure the cascade port

Enter the command Step 1: interface GigabitEthernet 1/0/21 \\ into the port

Step 2: speed 1000 \\set the speed to 1000M

The third step: duplex full \\set the port to full duplex mode

The fourth step: flow-control \\open flow control, the default is closed state

Step 5: mdi auto \\Set the Ethernet port to be automatically detected, normal (default) is a straight line, and across is a crossover line.

15. Restore the factory settings of the switch

Enter the command: restore factory-default \\ restore factory configuration, clean up operating data

Note: After restarting, enter the command reset save-configuration, and then restart the switch to clear the original configuration file

Note: After restoring the factory settings, you need to restart the switch

16. Configure ARP anti-attack mode

input the command:

The first step: dhcp snooping enable \\open the DHCP probe function

Step 2: arp detection enable \\open VLAN1 ARP intrusion detection function

The third step: dhcp snooping trust \\ set the upper cascade port as a DHCP snooping trusted port

Step 4: arp detection trust \\Set the upper cascade port to ARP detection trust port

Step 5: arp rate-limit 20 \\Set the port ARP packet rate limit function, set the maximum rate of ARP packets to 20pps