Cisco (Cisco) switch Configuration chapter "two"

Source: Internet
Author: User

Previous page Everyone talked about Cisco Basic Operation command switch, while dragon boat holiday, the Cisco simple switch configuration, and hope you share "Happy Dragon Boat Festival"! Ok, configure the switch, first, you must enter the global configuration mode switch, successfully connect the switch and landing successfully into privileged mode

1. Enter the global configuration mode:

Switch#configure terminal Enter configuration commands, one per line.  End with Cntl/z.switch (config) #switch (config) #switch (config) #
So simple a command, we go into the global configuration mode, remember the last article to see the information in Port query the value under the Name field? This field actually represents the description of the switch port.

2. Change the description of port

switch#switch#switch#conf terenter configuration commands, one per line. End with Cntl/z.switch (config) #switch (config) #int fa0/3switch (config-if) #switch (config-if) #descswitch (config-if) # Description Updatedescswitch (config-if) #switch (config-if) #exitswitch (config) #exitswitch #switch#show interswitch# Show interfaces Statuswitch#show interfaces status Port Name status Vlan Duplex speed Type FA0/1 connected 1 a-full a-100 10/100BASETXFA0/2 h3c2.250 connected t                        Runk a-full a-100 10/100basetxfa0/3 updatedesc notconnect 1 Auto Auto 10/100BASETXFA0/4          Connected 1 a-full a-100 10/100BASETXFA0/5 h3c-2.200 connected 1 A-full a-100 10/100BASETXFA0/6 notconnect 1 Auto Auto 10/100basetx

The key command to change the descriptive narrative is in configuration mode. Go to the port you want to change, then use description + "content". The effect should be very intuitive. The next step is to change the VLAN where port is located.

3, change Portvlan

switch#switch#switch#conf tenter configuration commands, one per line.  End with Cntl/z.switch (config) #switch (config) #int fa0/3switch (config-if) #switch (config-if) #sw ACC VL 2switch ( config-if) #switch (config-if) #exitswitch (config) #switch (config) #exitswitch #switch#show inter statuport      Name               Status       Vlan       Duplex speed  typefa0/1                        connected    1          a-full  a-100 10/100BASETXFA0/2     h3c2.250           Connected    trunk      a-full  a-100 10/100basetxfa0/3     updatedesc         notconnect   2            Auto   auto 10/100BASETXFA0/4                        connected    1          a-full  a-100 10/100BASETXFA0/5     h3c-2.200          connected    1          a-full  a-100 10/100BASETXFA0/6                        notconnect   1            Auto   Auto 10/100basetx

Logic and change the port descriptive narrative is the same, for configuration, it must be to have the ability to configure permissions and the object to be configured. The key command to change Portvlan here is: SW ACC VL + Vlantag, commands are very clearly abbreviated, but do not affect the operation. The full write of the command is: Switchport access VLAN + Vlantag

Other simple operations on port, such as changing the mode of port,

4. Change port mode

Switch (config-if) #switchport trunk encap dot1q----------------set up the encapsulation protocol for VLAN trunking Note: dot1q is the IEEE 802.1Q protocol, which is a way to encapsulate VLANs, is a public agreement.

Another trunk protocol, which is an ISL, is also a encapsulation of VLANs, except that this is the Cisco Cisco Private Protocol. Other manufacturers are not available. Switch (config-if) #switchport mode trunk------------------------Set the port type to Trunkswitch (config-if) #switchport trunk Allowed VLAN 1. 2---------Set the Consent VLAN. Not configured by default. 999 VLAN set trunk port for all Vlanswitch (config-if) #switchport trun native VLAN native---------------


5. Port Status
Switch (config) #switch (config) #int fa0/3switch (config-if) #switch (config-if) #switch (config-if) #sw ACC VL 1switch ( config-if) #switch (config-if) #switch (config-if) #shutd   switch (config-if) #shutdown switch (config-if) #    Switch (config-if) #exitswitch (config) #switch (config) #exitswitch #switch#show inter statuport      Name               Status       Vlan       Duplex speed  TYPEFA0/1                        connected    1          a-full  a-100 10/100basetxfa0/2     h3c2.250           Connected    Trunk      a-full  a-100 10/100basetxfa0/3     updatedesc         disabled     1            Auto   Auto 10/100BASETXFA0/4                        connected    1          a-full  a-100 10/100basetx

The above series for switching VLANs, and Shutdownport, this time you may see that the status of Switch port 3rd has become disable, assuming that we want to enable port only need to
switch#conf tenter configuration commands, one per line.  End with Cntl/z.switch (config) #switch (config) #int fa0/3switch (config-if) #switch (config-if) #no Shutswitch (config-if ) #no shutdown switch (config-if) #switch (config-if) #exitswitch (config) #switch (config) #exitswitch #switch#show Inter Statuport      Name               Status       Vlan       Duplex speed  typefa0/1                        connected    1          a-full  a-100 10/100BASETXFA0/2     h3c2.250           connected    trunk      a-full  a-100 10/100BASETXFA0/3     Updatedesc         notconnect   1            auto   auto 10/100BASETXFA0/4                        connected    1          a-full  a-100 10/100basetx

It's here today. Have time to come and share with you the things and knowledge that you need at work and that are very useful to you. Keep your eye on the next one--sign in to some settings on the switch

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Cisco (Cisco) switch Configuration chapter "two"

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.