2950交换机配置
• 14、no shutdown 15、line console 0 16、line vty 0 4 17、login 18、password 123 19、clock rate number 20、bandwidth number 21、ip add 22、show cdp neighbors 23、show cdp interface 24、exit 25、disconnect 26、ping 27、trace
• >enable #configure terminal (config)#hostname 2950sw3 2950sw3(config)#enable password cisco 2950sw3(config)#interface vlan1 2950sw3(config-if)#ip address 192.168.1.99 255.255.255.0 2950sw3(config-if)#no shutdown 2950sw3(config-if)#exit 2950sw3(config)#ip default-gateway 192.168.1.1 2950sw3#show interface vlan1 2950sw3#show interfaces 2950sw3#show version 2950sw3#show mac-address-table
• Switch#config terminal Switch(config)#interface fastethernet0/3 Switch(config-if)#speed 10 Switch(config-if)#duplex half Switch#config terminal Switch(config)#interface fastethernet0/4 Switch(config-if)#descriptionch(config-if)#end Switch#show interfaces fastethernet0/4 description Switch#show interfaces status Switch#show interfaces fastethernet0/1 switchport Switch#show running-config interface fastethernet0/2 Switch#configure terminal Switch(config)#interface fastethernet0/5 Switch(config-if)#shutdown
• Switch(config-if)# Switch#configure terminal Switch(config)#interface fastethernet0/5 Switch(config-if)#no shutdown Switch(config-if)#
• >enable #? #disable > >enable #configure terminal (config)#hostname 2950sw3 2950sw3(config)#exit 2950sw3# 2950sw3#show running-config 2950sw3#copy running-config startup-config 2950sw3#show startup-config 2950sw3#erase startup-config 2950sw3#reload
二、初始化配置有五种方法: 1、使用超级终端配置(终端串口连接到网 络设备Console口) 2、通过Telnet远程登陆配置(以太网口) 3、Web配置,通过浏览器(以太网口) 4、网络中的TFTP/FTP方式备份配置(以 太网口) 5、通过Modem连接设备远程拨号配置 (AUX口)
• 三、IOS的基本模式分为三种: 1、用户模式(User mode) 设备启动后先进入用户模式 switch> 在用户模式下只能进行有限的操作,如 ping其他网络设备,不能对设备进行配置
2950交换机配置
一、Cisco的网络设备依赖IOS(Internetwork Operating System)进行工作的。 网络设备在启动时,依以下顺序开始: 1、对设备硬件自检(ROM) 2、调用IOS(FLASH) 3、加载系统配置()--Starting config 4、开始工作(RAM)--Runing config
• 2、特权模式(Privileged Mode) switch>enable switch# 可以观察设备的状况,但不能对设备进 行配置
• 3、全局配置模式(Global Mode) switch#config terminal switch(config)# 可以对设备进行整体配置,是公共参数 的配置, 从全局模式再对专用属性配置时 要进入到接口模式、子接口、线路模式等 其他模式中进行一些特殊要求的设置
• 三、辅助功能 1、上下文帮助“?” “?”对不完整的命令,可以提供有关的语句定 义的帮助。 2、不全命令 Tab键提供命令的自动补全 3、历史纪录缓存 利用上下箭头查找以前的输入命令。 Ctrl+Z返回特权模式 Ctrl+C从setup模式退出到命令模式
• 五、交换机基本命令 1、enable • 2、show version 3、show running-config 4、show startup-config 5、show interfaces 6、configure terminal 7、show controllers 8、hostname 9、copy running-config startup-config 10、banner motd #message# 11、description message 12、enable password 123 13、enable secret 123