不卡AV在线|网页在线观看无码高清|亚洲国产亚洲国产|国产伦精品一区二区三区免费视频

學(xué)習(xí)啦>學(xué)習(xí)電腦>電腦入門>

思科交換機(jī)的基本配置

時(shí)間: 志藝942 分享

  隨著Internet的高速發(fā)展,網(wǎng)絡(luò)規(guī)模不斷膨脹,對(duì)于從事網(wǎng)絡(luò)專業(yè)的學(xué)生熟練掌握路由器和交換機(jī)的配置已顯得十分重要。接下來是小編為大家收集的思科交換機(jī)的基本配置方法,希望能幫到大家。

  思科交換機(jī)的基本配置的方法

  一、交換機(jī)的基本配置

  Author:chenchao in ZJNU

  從本篇文章開始,將連載大概8-9篇自己學(xué)習(xí)交換與路由的實(shí)驗(yàn)報(bào)告,但是怕自己能力不行,會(huì)出現(xiàn)錯(cuò)誤,所以,先載兩篇文章,依次為:交換機(jī)的基本配置;路由器基本配置。本篇為交換機(jī)的基本配置,使用的仿真軟件是Cisco的一款免費(fèi)軟件:Cisco Packet Tracer。想學(xué)習(xí)的可以在百度自行下載。

  下面開始附上實(shí)驗(yàn)過程:

  實(shí)驗(yàn)環(huán)境:

  Cisco 2950交換機(jī)1臺(tái),Console電纜1根,PC機(jī)一臺(tái),網(wǎng)線1根。連接如下圖所示:

  實(shí)驗(yàn)步驟:

  一、 交換機(jī)的帶外配置;

  1、 在用戶模式、特權(quán)模式、全局模式、接口模式之間轉(zhuǎn)換;

  Switch>enable

  Switch#configure terminal

  Enter configuration commands, one perline. End with CNTL/Z.

  Switch(config)#interface FastEthernet 0/1

  Switch(config-if)#exit

  Switch(config)#exit

  Switch#

  %SYS-5-CONFIG_I: Configured from console byconsole

  Switch#exit

  Switch con0 is now available

  Press RETURN to get started.

  Switch>

  2、將交換機(jī)的名稱改為“student”;

  Switch(config)#hostname student

  student(config)#

  3、 為交換機(jī)各個(gè)模式設(shè)置密碼“cisco”;

  特權(quán)模式下的密碼保護(hù)

  student#enable

  student#configure t

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#enable password cisco

  student(config)#enable secret cisco1

  遠(yuǎn)程登錄口令設(shè)置

  student#configure t

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#line console 0

  student(config-line)#line vty 0 4

  student(config-line)#password cisco2

  student(config-line)#login

  student(config-line)#

  student#

  4、為交換機(jī)制定一個(gè)IP地址10.10.10.X/24;

  student#config

  Configuring from terminal, memory, ornetwork [terminal]?

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#interface vlan 1

  student(config-if)#ip address 10.10.10.1255.0.0.0

  5、開啟交換機(jī)的Telnet服務(wù)功能,建立Telnet用戶admin,口令cisco,并制定只能從10.10.10.y/24登錄Telnet服務(wù)器;

  student#

  student#configure t

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#user admin password 0 cisco

  student(config)#

  6、 查看配置情況;

  student>enable

  Password:

  student#show running-c

  Building configuration...

  hostname student

  !

  enable secret 5 class="main">

思科交換機(jī)的基本配置

時(shí)間: 志藝942 分享

  enable password cisco

  !

  !

  username admin password 0 cisco

  interface Vlan1

  ipaddress 10.10.10.1 255.0.0.0

  !

  !

  line con 0

  !

  line vty 0 4

  password cisco2

  login

  line vty 5 15

  login

  !

  !

  End

  二、交換機(jī)的端口配置:

  1、 配置接口的描述、關(guān)閉借口、啟動(dòng)接口、配置接口的速度為100Mbps、配置接口工作模式為全雙工、配置接口的流程控制;

  student#configure terminal

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#interface FastEthernet0/1

  student(config-if)#shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/1,changed state to administratively down

  %LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to down

  %LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to down

  student(config-if)#

  student(config-if)#exit

  student(config)#interface FastEthernet0/1

  student(config-if)#no shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/1,changed state to up

  %LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to up

  %LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to up

  student(config-if)#speed 100

  student(config-if)#duplex full

  %LINK-5-CHANGED: Interface FastEthernet0/1,changed state to down

  %LINEPROTO-5-UPDOWN: Line protocol onInterface FastEthernet0/1, changed state to down

  %LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan1, changed state to down

  student(config-if)#

  2、 配置接口FastEthernet0/10為Access口;

  student#

  student#configure terminal

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#interface FastEthernet0/10

  student(config-if)#switchport mode access

  student(config-if)#

  3、 配置接口FastEthernet0/12為Trunk口;

  student#

  student#configure t

  Enter configuration commands, one perline. End with CNTL/Z.

  student(config)#interface fastethernet0/12

  student(config-if)#switchport mode Trunk

  student(config-if)#end

  4、 查看配置情況;

  !

  interface FastEthernet0/1

  duplex full

  speed100

  !

  interface FastEthernet0/2

  !

  interface FastEthernet0/9

  !

  interface FastEthernet0/10

  switchport mode access

  !

  interface FastEthernet0/11

  !

  interface FastEthernet0/12

  switchport mode trunk

  !

  student#show running-c

  Building configuration...

  Current configuration : 1275 bytes

  !

  version 12.1

  no service timestamps log datetime msec

  no service timestamps debug datetime msec

  no service password-encryption

  !

  hostname student

  !

  enable secret 5 class="main">

思科交換機(jī)的基本配置

時(shí)間: 志藝942 分享

  enable password cisco

  !

  !

  username admin password 0 cisco

  !

  !

  interface FastEthernet0/1

  duplex full

  speed 100

  !

  interface FastEthernet0/2

  !

  interface FastEthernet0/3

  !

  interface FastEthernet0/4

  !

  interface FastEthernet0/5

  !

  interface FastEthernet0/6

  !

  interface FastEthernet0/7

  !

  interface FastEthernet0/8

  !

  interface FastEthernet0/9

  !

  interface FastEthernet0/10

  switchport mode access

  !

  interface FastEthernet0/11

  !

  interface FastEthernet0/12

  switchport mode trunk

  !

  interface FastEthernet0/13

  !

  interface FastEthernet0/14

  !

  interface FastEthernet0/15

  !

  interface FastEthernet0/16

  !

  interface FastEthernet0/17

  !

  interface FastEthernet0/18

  !

  interface FastEthernet0/19

  !

  interface FastEthernet0/20

  !

  interface FastEthernet0/21

  !

  interface FastEthernet0/22

  !

  interface FastEthernet0/23

  !

  interface FastEthernet0/24

  !

  interface GigabitEthernet1/1

  !

  interface GigabitEthernet1/2

  !

  interface Vlan1

  ipaddress 10.10.10.1 255.0.0.0

  !

  !

  line con 0

  !

  line vty 0 4

  password cisco2

  login

  line vty 5 15

  login

  !

  !

  end

看了“思科交換機(jī)的基本配置”還想看:

1.思科交換機(jī)的基本配置詳解

2.思科交換機(jī)基本配置實(shí)例講解

3.Cisco交換機(jī)基本配置方法

4.思科交換機(jī)配置教程詳解

5.Cisco交換機(jī)常用配置命令總結(jié)

6.Cisco常用的路由器交換機(jī)配置命令

2743403