



免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
为思科交换机配置IP,组建小局域网:Switch(config)#interface vlan 1 /进入vlan1 默认vlan 进行管理Switch(config-if)#ip address ip_address subnet_mask /输入交换机IP和子网掩码Switch(config-if)#no shutdown /注意一定要输入这个命令才能使设置生效,激活设置Switch (config)#ip default-gateway ipaddress /设置默认网关实例:Switch(config)#interface vlan 1 Switch(config-if)#ip address 10.0.0.60 255.255.255.0Switch(config-if)#no shutdown Switch (config)#ip default-gateway 10.0.0.60PC1:设置10.0.0.61 netmask 255.255.255.0 gw 10.0.0.60PC2:设置 10.0.0.62 netmask 255.255.255.0 gw 10.0.0.60设置好后,就可以通过PC1 PING到 网关交换机 和 PC2 了。思科交换机配置telnetSwitch(config)# line vty0 4 /进入虚拟线程配置模式,在这个模式里可对/telnet功能进行配置Switch(config-line)# loginSwitch(config-line)# password XXX /配置telnet密码,默认的网络设备telnet的功能是关闭的,配了密码之后会自动打开Switch(config)# enable password XXX /配置进入enable模式的密码, 区分大小写Switch(config-line)# loginSwitch(config-line)# password XXX /配置进入用户模式的密码Switch#copy running-config startup-config /保存配置 -实例:Switch(config)# line vty0 4 Switch(config-line)# loginSwitch(config-line)# password 123 Switch(config)# enable password 123Switch(config-line)# loginSwitch(config-line)# password 123Switch#copy running-config startup-config 设置完成后可以通过PC1 10.0.0.61 连接交换机:PCtelnet 10.0.0.60Trying 10.0.0.60 .OpenUser Access VerificationPassword: SwitchenablePassword: Switch#sh ruBuilding configuration.Current configuration : 1157 bytes!version 12.1no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Switch!enable password 123321!interface FastEthernet0/1 storm-control broadcast level 1!interface FastEthernet0/2 storm-control broadcast level 1!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!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 ip address 10.0.0.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 农村金融服务创新与普惠金融发展研究报告(2025年)
- 维保合同解约协议书范本
- 火灾救人受伤赔偿协议书
- 猫宠物买卖合同协议模板
- 村民入股企业合同协议书
- 甘肃农业大学实习协议书
- 深圳劳动合同续订协议书
- 阴阳合同免责声明协议书
- 洗浴中心赔偿协议书模板
- 绿点合同解除协议书范本
- 二零二五版军人离婚协议书军人职业发展与子女抚养协议
- 电芯安全培训课件
- 2025年社区工作者招聘考试(公共基础知识)经典试题及答案
- 2025年北京高考地理真题及答案
- 薪酬绩效课程培训
- 2025广西公需科目真题续集(附答案)
- 金螳螂培训课件
- 2025年安徽交控集团财务有限公司招聘笔试参考题库含答案解析
- CJ/T 120-2016给水涂塑复合钢管
- 学校“1530”安全教育记录表(2024年秋季全学期)
- 《个人信息保护法》考试参考试题库100题(含答案)
评论
0/150
提交评论