- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
telnet方式连接交换机
设置主机名
Switch 用户模式
Switch# 特权模式
student1(config)# 配置模式 全局模式
1.设置主机名
Switchenable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname student1
student1(config)#
2.配置管理IP地址
student1(config)#interface vlan 1
student1(config-if)#ip address
student1(config-if)#ip default-gateway
若要取消管理IP地址,可执行 no ip address
3.配置使能密码(密码在配置文件中以密文形式保存)
student1(config)#enable secret cisco
student1enable
Password: 输入cisco
student1#
4. 设置DNS服务器
为了使交换机能解析域名,需要为交换机指定DNS服务器
启用DNS服务
student1(config)#ip domain-lookup
指定DNS服务器地址
student1(config)#ip name-server 8
5.启用与禁用HTTP服务
对于运行IOS操作系统的交换机,启用HTTP服务后还可利用Web界面来管理交换机。在浏览器中键入http://交换机管理IP地址,此时将弹出用户对话框,用户名可不指定,然后在密码输入框输入进入特权模式的密码,之后就可进行交换机的管理页面。交换机的WEB配置界面功能较弱且安全性较差,在实际应用中,主要还是命令行来配置,
student1(config)#ip http server
student1(config)# no ip http server
查看交换机信息
查看IOS版本
student1#show version
2、查看配置信息
显示当前正在运行的配置
show running-config
显示保存在NVRAM中的启动配置
show startup-config
3、查看端口信息
Show interface type mod/port
Type代表端口类型,通常有Ethernet(以太网端口,通信速率为10Mbps)、FastEthernet(快速以太网端口,通信速率为100Mbps)、
GigabitEthernet(吉比特以太网端口,通信速率为1000Mbps,如千兆光纤端口)、TenGigabitEthernet(万兆以太网端口)。这些端口类型通常可简约表达为e、fa、gi 、tengi
4、查看交换机的MAC
Telnet连接
Switchenab
Switchenable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#enable secret cisco
Switch(config)#line vty 0 4
Switch(config-line)#password 1234
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#line console 0
Switch(config-line)#password 123456
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#interface vlan 1
Switch(config-if)#ip address
Switch(config-if)#no shut
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#exit
Switch(config)#write
^
% Invalid input detected at ^ marker.
Switch(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#write
Building configuratio
文档评论(0)