Basic configuration of China Digital switch

Source: Internet
Author: User

1, Telnet the configuration

Switch>

Switch>enable// Enter privileged mode

Switch#config// Enter global configuration mode

Switch (config) #interface vlan 1// Enter interface configuration mode,VLAN1 represents the port for the entire switch, and layer three switches can specify multiple VLAN IPs c4>, and you can use Telnet

Switch (Config-if-vlan 1) #ip address 10.1.1.1 255.255.255.0// Configure VLAN1 IP addresses

Switch (Config-if-vlan 1) #no shutdown// activation VLAN1

Switch (Config-fi-vlan 1) #exit

Switch (config) #telnet-server enable// turn on telnet service

Switch (config) #username admin privilege Password 0 admin// Create user name and password, 0 for password is clear

Switch (config) #authentication line vty Login Local// authentication method is locally user authentication

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 Span style= "color: #00B050;" >auto  // Port rate is auto negotiation (default option)

                                                                                                 force10-full                 //10 Mega full duplex

                                                                                                 force10-half                //10 half duplex

                                                                                                 force100-full             / /100 Mega full-duplex

                                                                                                 force100-fx                 //100 mega optical duplex

                                                                                                 force100-half           //100

                                                                                                 force10g-full             / /10g full duplex

                                                                                                 force1g-full                //1000 gigabit duplex

Force1g-half//1000 Half Duplex

Switch (CONFIG-IF-ETHERNET1/0/1) #exit

(2) set the port to receive, the data occupied by the broadband

Switch (config) #interface ETHERNET1/0/2

Switch (CONFIG-IF-ETHERNET1/0/2) #Bandwidthcontrol 10000 both // transmit/Receive data bandwidth /c4>10M

                                                                                                     1000 receive          // receive data bandwidth 1m

                                                                                                     1000 transmit         // send

KB as Unit

(3) Port mirroring

Switch (config) #monitor session1 sourec interface ethent 1/0/1-10 both // Mirror Group 1 of the 1-10 Port received, the data sent to mirror

Switch (config)monitor session1 destination Internet 1/0/24// Mirror Group 1 of the received, the data is mirrored to the port number

(4) Port loop detection

Switch (config) #loopback-detectioninterval-time // configuration single-port loop detection packet transmit interval, loop 1 seconds , no ring when the first time

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

Switch (config-if-port-range) #loopback-detection Special-vlan 1 // ports on the entire switch are turned on for Port loop detection

Switch (config-if-port-range) #Loopback-detectioncontrol shutdown // Close the port if a loop is found on the port

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

Switch (config) #loopback-detectioncontrol-recovery Time// Configure Port loop detection by default

(5) Port aggregation

Switch (config) #port-group 1 // Create Port Group 1, Port group number cannot be the same as other switch group number

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

Switch (config-if–port-range) #port-group1 mode no // add 1-2 port to the 1 -port Group, Mode is manual.

                                                                                   mode passive      // active mode

Mode Active // passive

Note: If the first switch port is configured with manual mode, then the port of the other switch is also manual mode. If one switch is active, the other one is passive.


This article is from the "Future" blog, please be sure to keep this source http://zjclinux.blog.51cto.com/9796061/1742896

Basic configuration of China Digital switch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.