交换机的基本配置

作者:国际小甜 | 创建时间: 2023-04-03
本实验的模拟实验是在Cisco Pcket Tracer工具内操作...
交换机的基本配置

操作方法

在用户模式、特权模式、全局模式及接口模式之间转换 SW1#                                                            //用户模式 SW1>enable                                                      //特权模式 SW1#config terminal                                               //全局模式 Enter configuration commands, one per line.  End with CNTL/Z. SW1(config)#interface f0/0                                           //接口模式 SW1(config-if)#exit                                                 //退回全局模式 SW1(config)#exit                                                   //退回特权模式 SW1#

将交换机的名称该为”student”; student#enable student#config t Enter configuration commands, one per line.  End with CNTL/Z. student(config)#hostname student student(config)#

将交换机的各个配置模式设置密码为”cisco”; student(config)#enable password cisco student(config)#line console 0 student(config-line)#line vty 0 4 student(config-line)#password cisco student(config-line)#login student(config-line)#end

将交换机指定一个IP地址 10.10.10.x/24; student(config)#interface vlan 1 student(config-if)#ip address 10.10.10.1 255.255.255.0 student(config-if)#no shutdown student(config-if)#end

开启交换机的Telnet服务功能,并建立Telnet用户admin,口令cisco,并指定只能从10.10.10.y/24登入Telnet服务器; 上面的陪我配置中远程服务已经开启,现在只需要将pc配置好就可以尝试远程登入了

开启交换机的www服务功能。 student>enable student#config ter student(config)#enable services web-sever

查看配置情况 student#show running-config 如下图为结果部分截图,我们可以看到版本为12.1、主机名为student、用户模式进入密码为cisco等等信息

点击展开全文

更多推荐