Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The basic configuration of China Digital Exchange

Shulou Source: shulou.com Published: 2022-06-01 05:53:15 10月01日 Update

Configuration of Telnet

Switch >

Switch > enable / / enter privileged mode

Switch#config / / enter global configuration mode

Switch (config) # interface vlan 1 / / enters the interface configuration mode. VLAN1 represents the port of the entire switch. Layer 3 switches can specify multiple VLAN IP, and all of them can use Telnet.

Switch (config-if-vlan 1) # ip address 10.1.1.1 255.255.255.0 / / configure the IP address of VLAN1

Switch (config-if-vlan 1) # no shutdown / / activate VLAN1

Switch (config-fi-vlan 1) # exit

Switch (config) # telnet-server enable / / enable Telnet service

Switch (config) # username admin privilege 15 password 0 admin / / create a user name and password. 15 represents the weight, 0 indicates the password is in clear text

Switch (config) # authentication line vty login local / / Authentication for local users

2 port configuration

(1) configure port rate and duplex mode

Switch#config

Switch (config) # interfaceEthernet 1-0-1

Switch (config-if-ethernet1/0/1) # speed-duplex auto / / Port rate is autonegotiation (default option)

Force10-full / / 10 megabit full duplex

Force10-half / / 10m half duplex

Force100-full / / 100m full duplex

Force100-fx / / 100m optical duplex

Force100-half / / 100m half duplex

Force10g-full / / 10G full duplex

Force1g-full / / 1000 megabit duplex

Force1g-half / / 1000 half duplex

Switch (config-if-ethernet1/0/1) # exit

(2) set the broadband occupied by the port to receive and send data.

Switch (config) # interface ethernet1/0/2

Switch (config-if-ethernet1/0/2) # bandwidthcontrol 10000 both / / sending and receiving data bandwidth 10m

1000 receive / / received data bandwidth 1m

1000 transmit / / transmit data bandwidth 1m

KB is the unit

(3) Port image

Switch (config) # monitor session1 sourec interface ethent 1-0-1-10 both / / Mirror the data sent and received on ports 1-10 of Mirror Group 1

Switch (config) monitor session1 destination internet 1-0-24 / / mirrors the received and transmitted data of mirror group 1 to port 24

(4) Port loop detection

Switch (config) # loopback-detectioninterval-time 30 15 / / configure the sending interval of single-port loop detection messages, once every 30 seconds when there is a loop, and once every 15 when there is no loop.

Switch (config) # interface Ethernet 1-0-1-24

Switch (config-if-port-range) # loopback-detection special-vlan 1 / / Port Loop Detection is enabled on the entire switch

Switch (config-if-port-range) # loopback-detectioncontrol shutdown / / shut down the port if it is found to have a loop

Switch (config-if-port-range) # exit

Switch (config) # loopback-detectioncontrol-recovery time 360 / / configure the default time for port loop detection

(5) Port aggregation

Switch (config) # port-group 1 / / create port group 1. The port group number cannot be the same as that of other switch groups.

Switch (config) # interface Ethernet 1-0-1-2

Switch (config-if-port-range) # port-group1 mode no / / adds ports 1-2 to the 1 port group, the mode is manual.

Mode passive / / active mode

Mode active / / passive mode

Note: if the first switch port is configured in manual mode, the port on the other switch should also be in manual mode. If one switch is active, the other is passive.

Tags: Port configuration mode duplex loop switch data mirror detection representative bandwidth manual port group active password user rate authentication same representation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn macOS Huawei Shulou Tech Info