Packet tracer 6.0
交换机命令配置
1.基本配置
Switch> enable //用户模式
Switch# configure terminal //特权模式
Switch(config)# //全局模式
Switch(config)# hostname SW2950-24
SW2950-24(config)# interface fa0/1
SW2950-24(config-if)# end
SW2950-24# ? //显示当前模式下所有可执行的命令
SW2950-24# show version //查看系统版本信息
SW2950-24# erase startup-config //恢复出厂设置
SW2950-24# show running-config //查看当前生效的配置信息
2. telnet配置
- 交换机:
Switch> en //简写命令可按tab键自动补齐
Switch# conf t
Switch(config)# interface vlan 1
Switch(config-if)# ip add 192.168.1.2 255.255.255.0 //配置ip地址
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# enable secret 0 8888 //配置进入特权模式密码
SW2950-24(config)# line vty 0 4
SW2950-24(config-line)# password 55555 //配置telnet密码
SW2950-24(config-line)# login
SW2950-24(config)# exit
- PC:
PC> telnet 192.168.1.2
Trying 192.168.1.2 ...Open
User Access Verification
Password: 55555
Switch> en
Password: 88888
Switch# conf t
Switch(config)#
3.IOS升级
-
Server:配置相关IP地址,打开tftp服务
-
交换机:
Switch# show flash //查看当前存储器内容
Switch# copy tftp flash //配置IOS升级相关参数
Address or name of remote host []? 192.168.1.1 //tftp服务器地址
Source filename []? c2950-i6q412-mz.121-22.EA8.bin
Destination filename [c2950-i6q412-mz.121-22.EA8.bin]?
Accessing tftp://192.168.1.1/c2950-i6q412-