星空5G 导航

思科交换机的基本配置-

2024-09-12编辑:本站
~   随着Internet的高速发展,网路规模不断膨胀,对于从事网路专业的学生熟练掌握路由器和交换机的配置已显得十分重要。接下来是我为大家收集的方法,希望能帮到大家。
  的方法
  一、交换机的基本配置

  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 mands, one perline. End with CNTL/Z.

  Switchconfig#interface FastEthernet 0/1

  Switchconfig-if#exit

  Switchconfig#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”;

  Switchconfig#hostname student

  studentconfig#

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

  特权模式下的密码保护

  student#enable

  student#configure t

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

  studentconfig#enable password cisco

  studentconfig#enable secret cisco1

  远端登入口令设定

  student#configure t

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

  studentconfig#line console 0

  studentconfig-line#line vty 0 4

  studentconfig-line#password cisco2

  studentconfig-line#login

  studentconfig-line#

  student#

  4、为交换机制定一个IP地址10.10.10.X/24;

  student#config

  Configuring from terminal, memory, ornetwork [terminal]?

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

  studentconfig#interface vlan 1

  studentconfig-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 mands, one perline. End with CNTL/Z.

  studentconfig#user admin password 0 cisco

  studentconfig#

  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 mands, one perline. End with CNTL/Z.

  studentconfig#interface FastEthernet0/1

  studentconfig-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

  studentconfig-if#

  studentconfig-if#exit

  studentconfig#interface FastEthernet0/1

  studentconfig-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

  studentconfig-if#speed 100

  studentconfig-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

  studentconfig-if#

  2、 配置介面FastEthernet0/10为Access口;

  student#

  student#configure terminal

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

  studentconfig#interface FastEthernet0/10

  studentconfig-if#switchport mode access

  studentconfig-if#

  3、 配置介面FastEthernet0/12为Trunk口;

  student#

  student#configure t

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

  studentconfig#interface fastethernet0/12

  studentconfig-if#switchport mode Trunk

  studentconfig-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

  • 思科模拟器交换机怎么配置?
  • 答:配置成静态地址。这是最有效的强制方式,但对于有Vlan控制的设备未必有效。找到进行192.168.1.x地址分配的DHCP服务设备,关闭或停止DHCP服务。以交换模式私自接入另外的小路由器,但又未关闭其中的DHCP会出现这种问题。原理 思科模拟器中的交换机 交换机工作于OSI参考模型的第二层,即数据链路层。交换机...

  • Cisco交换机配置怎么设置ip?
  • 答:1、打开Cisco数据包跟踪器,将路由器、交换机和两台PC拖到工作区。2、双击打开路由器0。在“物理”选项卡上,关闭路由器0的电源。3、从左边的模块区拖动两个模块到路由器0的slot1和slot0,然后打开路由器0的电源。4、拖动下面的电缆连接设备。5、双击路由器0,然后在命令行中输入配置命令。6、双击...

  • 思科交换机怎么配置?
  • 答:1. 开始配置:首先,通过命令 "enable" 进入特权模式,接着输入 "enable password" 设置交换机的密码,如"enable secret ciscolab"。2. 配置全局信息:通过 "configure terminal" 进入全局配置模式,设置交换机名称,如 "hostname aptech2950"。3. VLAN配置:创建VLAN 1,例如 "inte***ce vlan 1"...

  • 思科交换机怎么配置?
  • 答:1、首先将一台PC和一台交换机用线缆连接起来。2、打开PC,规范好PC的网络配置,如下图所示,记住PC的网关就是交换机的IP地址。3、进入交换机的中端里面进行配置。4、先给交换机起一个名字,命令是:Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hos...

  • 思科交换机怎么配置默认路由
  • 答:1、首先,打开思科模拟器软件,连接三台交换机的连接线,将所有交换机互相连接起来,一台当服务器,一台当客户机,另外一台当透明模式。2、把三台交换机的配置清除干净,重启交换机。3、配置S3 为VTP transparent,配置命令是:S3#vlan database。4、配置S2 为VTP client,配置命令是:S2(config)#...

  • 思科交换机基本配置命令
  • 答:配置思科交换机的基本命令是完成网络设备管理的关键步骤。以下是操作步骤的详细说明:1. 首先进入特权模式,输入命令:switch>enable 然后输入交换机提示符:switch 2. 进入全局配置模式,执行以下命令:switch>enable switch#configure terminal 此时提示符变为:switch(conf)3. 接下来配置交换机名称,例如:...

  • Cisco思科交换机配置请高手赐教。急!急!急!
  • 答:CISCO交换机基本配置:Console端口连接 用户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;交换机口令设置:switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname csico ;设置交换机的主机名 switch(config)#enable secret ...

  • 基本思科三层交换机配置命令有哪些思科三层交换机配置命令介绍_百度...
  • 答:基本思科三层交换机配置命令:1. 交换机支持的命令:- 交换机基本状态:ROM状态,路由器是rommon> - 用户模式:hostname> - 特权模式:hostname - 全局配置模式:hostname(config)- 接口状态:hostname(config-if)2. 交换机口令设置:- 进入特权模式:switch>enable - 进入全局配置模式:switch#config...

  • 在思科模拟器上如何进行交换机的基本配置?
  • 答:楼主,你好\x0d\x0a\x0d\x0a在模拟器上添加思科交换机\x0d\x0a\x0d\x0a进行CLI输入\x0d\x0a\x0d\x0a用户模式hostname# ;\x0d\x0a特权模式hostname(config)# ;\x0d\x0a全局配置模式hostname(config-if)# ;\x0d\x0a\x0d\x0a交换机口令设置:\x0d\x0aswitch>...

  • 思科交换机配置命令是什么?
  • 答:首先,进入交换机的配置模式通常是配置命令的第一步。这通常通过连接到交换机的控制台端口或使用Telnet、SSH等远程访问方法完成。一旦建立连接,管理员会输入一个启用命令(如“enable”或简写为“en”),然后可能需要输入特权密码以获取配置权限。接下来,管理员可以使用各种配置命令来...

    相关内容

    首页 新知 身健
    返回顶部

    © 星空5G w.xkyn.com