Basic configuration of Cisco switches

Source: Internet
Author: User

One switch and two PCs to allow logging on to the switch terminal


650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/08/80/wKiom1njSuyyR0gRAAAVhc4mtfA331.png "title=" QQ picture 20171015194505.png "alt=" Wkiom1njsuyyr0graaavhc4mtfa331.png "/>

Command configuration:

Sw1#vlan database//Enter VLAN

% Warning:it are recommended to configure VLANs from config mode,

As VLAN database mode is being deprecated. Please consult user

documentation for configuring Vtp/vlan in config mode.


SW1 (VLAN) #vlan 10//Create a VLAN10

VLAN Ten added:

name:vlan0010

SW1 (VLAN) #vlan 20//Create a Vlan20 and save exit

VLAN added:

name:vlan0020

SW1 (VLAN) #exit

APPLY completed.

Exiting ....

sw1#

Sw1#config Terminal

Enter configuration commands, one per line. End with cntl/z.

SW1 (config) #enable password 123456//set plaintext password

SW1 (config) #line vty 0 4//Open 5 ports

SW1 (config-line) #password 123456//Set Password

SW1 (Config-line) #login//Allow Login

SW1 (Config-line) #exit

SW1 (config) #int F1/1 entry Port

SW1 (config-if) #switchport mode access//access mode

SW1 (config-if) #switchport access VLAN//VLAN10 join access mode

SW1 (config-if) #int F1/2

SW1 (config-if) #switchport mode access

SW1 (config-if) #switchport access VLAN-//VLAN20 join mode

SW1 (config-if) #exit

SW1 (config) #int VLAN 10//Set IP address for VLAN10

SW1 (config-if) #ip address 192.168.10.1 255.255.255.0

SW1 (config-if) #no sh

SW1 (config-if) #int VLAN 20

SW1 (config-if) #ip address 192.168.20.1 255.255.255.0

SW1 (config-if) #no sh

SW1 (config-if) #

Sw1#sh IP int br//View port status

Interface ip-address OK? Method Status Protocol

fastethernet0/0 Unassigned YES unset administratively down

FASTETHERNET0/1 Unassigned YES unset administratively down

fastethernet1/0 unassigned YES unset up down

FASTETHERNET1/1 Unassigned YES unset up

FASTETHERNET1/2 Unassigned YES unset up

FASTETHERNET1/3 unassigned YES unset up down

FASTETHERNET1/4 unassigned YES unset up down

FASTETHERNET1/5 unassigned YES unset up down

FASTETHERNET1/6 unassigned YES unset up down

FASTETHERNET1/7 unassigned YES unset up down

FASTETHERNET1/8 unassigned YES unset up down

FASTETHERNET1/9 unassigned YES unset up down

FASTETHERNET1/10 unassigned YES unset up down

FASTETHERNET1/11 unassigned YES unset up down

FASTETHERNET1/12 unassigned YES unset up down

FASTETHERNET1/13 unassigned YES unset up down

FASTETHERNET1/14 unassigned YES unset up down

FASTETHERNET1/15 unassigned YES unset up down

Vlan1 unassigned YES unset up down

Vlan10 192.168.10.1 YES Manual up

Vlan20 192.168.20.1 YES Manual up

sw1#

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/08/82/wKiom1njV3KCWsVAAAAp30tzTpQ385.png "style=" float : Left; "title=" QQ picture 20171015203147.png "alt=" Wkiom1njv3kcwsvaaaap30tztpq385.png "/>

650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M02/08/82/wKiom1njVdGQDTDbAADyNvFXwiI922.jpg "style=" float : Left; "title=" QQ picture 20171015203243.jpg "alt=" Wkiom1njvdgqdtdbaadynvfxwii922.jpg "/>


650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/08/82/wKiom1njVqWA8C0jAAAJ_FqDFHc742.png "style=" float : Left; "title=" QQ picture 20171015203735.png "alt=" Wkiom1njvqwa8c0jaaaj_fqdfhc742.png "/>


This article is from the "DY" blog, please be sure to keep this source http://guochenyong.blog.51cto.com/11367898/1972538

Basic configuration of Cisco switches

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.