首页

思科交换机的基本配置

开题报告 |

时间:

2013-03-27

|

【www.gdfshaiyu.com--开题报告】

  思科交换机的基本配置的方法

  一、交换机的基本配置

  Author:chenchao in ZJNU

  从本篇文章开始,将连载大概8-9篇自己学习交换与路由的实验报告,但是怕自己能力不行,会出现错误,所以,先载两篇文章,依次为:交换机的基本配置;路由器基本配置。本篇为交换机的基本配置,使用的仿真软件是Cisco的一款免费软件:Cisco Packet Tracer。想学习的可以在百度自行下载。

  下面开始附上实验过程:

  实验环境:

  Cisco 2950交换机1台,Console电缆1根,PC机一台,网线1根。连接如下图所示:

  实验步骤:

  一、 交换机的带外配置;

  1、 在用户模式、特权模式、全局模式、接口模式之间转换;

  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、将交换机的名称改为“student”;

  Switch(config)#hostname student

  student(config)#

  3、 为交换机各个模式设置密码“cisco”;

  特权模式下的密码保护

  student#enable

  student#configure t

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

  student(config)#enable password cisco

  student(config)#enable secret cisco1

  远程登录口令设置

  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、为交换机制定一个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、开启交换机的Telnet服务功能,建立Telnet用户admin,口令cisco,并制定只能从10.10.10.y/24登录Telnet服务器;

  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$1$mERr$q.MA2tj.WFptzvbifq/1i.

  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

  二、交换机的端口配置:

  1、 配置接口的描述、关闭借口、启动接口、配置接口的速度为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$1$mERr$q.MA2tj.WFptzvbifq/1i.

  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

延伸阅读
以下属于《领导干部报告个人有关事项规定》列明的需报告的内容是:() 题 目: 以下属于《领导干部报告个人有关事项规定》列明的需报告的内容是:( )①本人的婚姻变化情况 ②配偶、子女移居国(境)外专题 > 继续教育
2022-07-25
题目:在英国,如果发生有人畜伤亡的事故而不报告警方,将被视为选项A:正常行为选项B:违法选项C:犯罪正确答案:选项C选项C:犯罪、问答 > 政治小知识
2022-07-24
习总书记在十九大报告中指出,中国特色社会主义进入新时代,我国社会主要矛盾已经转化为( )。 题 目: 习总书记在十九大报告中指出,中国特色社会主义进入新时代,我国社会主要矛盾已经转化为( )。专题 > 继续教育
2022-07-24
习总书记在十九大报告中指出,经过长期努力,中国特色社会主义进入了( ),这是我国发展新的历史方位 题 目:第三题 习总书记在十九大报告中指出,经过长期努力,中国特色社会主义进入了( ),这是我国专题 > 继续教育
2022-07-24
第三题 习总书记在十九大报告中指出,中国特色社会主义进入新时代,我国社会主要矛盾已经转化为( )。 题 目:第三题 习总书记在十九大报告中指出,中国特色社会主义进入新时代,我国社会主要矛盾已经转化专题 > 继续教育
2022-07-23
入党介绍人要认真了解申请人的思想、品质、经历和工作表现,向他解释( )和( ) ,说明( ) ,并向党组织作出负责的报告。 题 目:入党介绍人要认真了解申请人的思想、品质、经历和工作表现,向他解释(专题 > 继续教育
2022-07-23
习总书记在十九大报告中强调,我们要在继续推动发展的基础上,着力解决好( )。 题 目:习总书记在十九大报告中强调,我们要在继续推动发展的基础上,着力解决好( )。 正 确 答 案 : 发展不专题 > 继续教育
2022-07-23
习总书记在十九大报告中强调,我们党团结带领人民完成社会主义革命,确立( ),为当代中国一切发展进步奠定了根本政治前提和制度基础。 题 目:习总书记在十九大报告中强调,我们党团结带领人民完成社会主义革命专题 > 继续教育
2022-07-23
选拔任用党政领导干部,对拟破格提拔的人选在讨论决定前,必须报经上级组织(人事)部门同意。越级提拔或者不经过民主推荐列为破格提拔人选的,应当在___________报告,经批复同意后方可进行 题 目:选专题 > 继续教育
2022-07-23
习总书记在十九大报告中强调,我们党团结带领人民进行( )新的伟大革命,破除阻碍国家和民族发展的一切思想和体制障碍。 题 目:习总书记在十九大报告中强调,我们党团结带领人民进行( )新的伟大革命,破除阻专题 > 继续教育
2022-07-22
  • 推荐访问