当前位置:首页 > 科技 > 正文内容

思科交换机的基本配置(思科交换机的基本配置)

2019-06-13 13:06:02科技623

大家好,今天就和小雪一起来看看这个问题吧 。思科交换机的基本配置,思科交换机的基本配置很多人还不知道,现在让我们一起来看看吧!

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

思科交换机的基本配置(思科交换机的基本配置)

作者:浙江师范大学陈超

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

下面开始附上实验过程:

实验环境:

思科2950交换机一台,控制台电缆一根,个人电脑机一台,网线一根。连接如下图所示:

实验步骤:

一、交换机的带外配置;

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

开关使能

开关#配置终端

输入配置命令,一行一个。以CNTL/Z结尾。

交换机(配置)#接口快速以太网0/1

开关(配置-如果)#退出

开关(配置)#退出

开关#

%SYS-5-CONFIG_I:通过控制台从控制台进行配置

开关#退出

交换机con0现在可用

按下返回键开始。

转换

2、将交换机的名称改为"学生";

交换机(配置)#主机名学生

学生(配置)#

3、 为交换机各个模式设置密码"思科";

特权模式下的密码保护

学生#启用

学生#配置测试

输入配置命令,一行一个。以CNTL/Z结尾。

学生(配置)#启用口令加拿大白鲑

学生(配置)#启用加密cisco1

远程登录口令设置

学生#配置测试

输入配置命令,一行一个。以CNTL/Z结尾。

学生(配置)#线路控制台0

学生(配置行)#行vty 0 4

学生(配置行)#密码顺式co2

学生(配置行)#登录

学生(配置行)#

学生#

4、为交换机制定一个互联网协议(互联网协议)地址10 .10 .10 .x/24;

学生#配置

从终端、内存或网络[终端]进行配置?

输入配置命令,一行一个。以CNTL/Z结尾。

学生(配置)#接口虚拟局域网1

学生(配置-如果)#ip地址10.10.10.1255.0.0.0

5、开启交换机的用于远程联接服务的标准协议或者实现此协议的软件(可为动词)服务功能,建立用于远程联接服务的标准协议或者实现此协议的软件(可为动词)用户管理员,口令思科,并制定只能从24年10月10日登录用于远程联接服务的标准协议或者实现此协议的软件(可为动词)服务器;

学生#

学生#配置测试

输入配置命令,一行一个。以CNTL/Z结尾。

学生(配置)#用户管理员密码0思科

学生(配置)#

6、 查看配置情况;

学生能力

密码:

学生#秀

  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

看了“思科交换机的基本配置”还想看:

1.思科交换机的基本配置详解

2.思科交换机基本配置实例讲解

3.Cisco交换机基本配置方法

4.思科交换机配置教程详解

5.Cisco交换机常用配置命令总结

6.Cisco常用的路由器交换机配置命令

这篇文章到此就结束,希望能帮助到大家。

扫描二维码推送至手机访问。

版权声明:文章内容摘自网络,如果无意之中侵犯了您的版权,请联系本站,本站将在3个工作日内删除。谢谢!

本文链接:http://xixia168.cn/n/kj/7397.html

标签: 思科交换机
分享给朋友:

“思科交换机的基本配置(思科交换机的基本配置)” 的相关文章

秦始皇称帝时间在什么时候(秦始皇在位了多少年)

秦始皇称帝时间在什么时候(秦始皇在位了多少年)

大家好,今天就和蜜蜜一起来看看这个问题吧 。秦始皇在位了多少年,秦始皇称帝时间在什么时候很多人还不知道,现在让我们一起来看看吧!  一、  秦始皇在位了多少年  秦始皇总共在位三十七年的时间,他从公元前246年继承秦王王位开始,一直到公元前221年这段时间,秦始皇只是秦国的秦王,公元221年他才正式...

每隔几年出现一次闰年(闰年几年一次)

每隔几年出现一次闰年(闰年几年一次)

大家好,今天就和丹尼一起来看看这个问题吧 。闰年几年一次,每隔几年出现一次闰年很多人还不知道,现在让我们一起来看看吧!  一、  闰年几年一次  闰年是公历中的名词,分为普通闰年和世纪闰年。普通闰年是4年一次,公历年份是4的倍数的,且不是100的倍数,为普通闰年。世纪闰年是400年一次,公历年份是整...

重阳节风俗有哪些(重阳节干什么)

重阳节风俗有哪些(重阳节干什么)

大家好,今天就和毛毛一起来看看这个问题吧 。重阳节干什么,重阳节风俗有哪些很多人还不知道,现在让我们一起来看看吧!    1、登高  重阳节首先有登高的习俗。金秋九月,天高气爽,这个季节登高远望可达到心旷神怡,健身祛病的目的。  2、吃重阳糕  重阳糕亦称"花糕"。为了美观中吃,人们把重阳糕制成五颜...

2022年3月最吉利的日子一览表(2022年三月份黄道吉日有哪几天)

2022年3月最吉利的日子一览表(2022年三月份黄道吉日有哪几天)

大家好,今天就和丹尼一起来看看这个问题吧 。2022年三月份黄道吉日有哪几天,2022年3月最吉利的日子一览表很多人还不知道,现在让我们一起来看看吧!  一、  2022年三月份黄道吉日有哪几天  2022年三月份黄道吉日有3月17日,3月18日,3月19日,3月20日,3月21日,3月22日,3月...

2021全国各地樱花最佳观赏时间表一览(樱花什么时候开花大概几月到几月)

2021全国各地樱花最佳观赏时间表一览(樱花什么时候开花大概几月到几月)

大家好,今天就和大牛一起来看看这个问题吧 。樱花什么时候开花大概几月到几月,2021全国各地樱花最佳观赏时间表一览很多人还不知道,现在让我们一起来看看吧!导语:近来天气越来越暖和了,很多春花都含苞待放中。其中,樱花也即将迎来最佳观赏时期。我国每年春季赏樱花的去处可太多了,武汉、南京、北京、上海等等,...

结婚纪念日4周年是什么婚(结婚四年是什么婚)

结婚纪念日4周年是什么婚(结婚四年是什么婚)

大家好,今天就和猫猫一起来看看这个问题吧 。结婚四年是什么婚,结婚纪念日4周年是什么婚很多人还不知道,现在让我们一起来看看吧!  一、  结婚四年是什么婚  结婚四周年是花果婚。正常来说,一对夫妇结婚四年后已经有了下一代,就像是树一样有花有果。在结婚四周年的生活中有酸有甜,但也有比较危险的一个年限,...