一、交换机的基本配置
1.
Switch> (用户执行模式提示符)
Switch>enable (进入特权模式)
Switch# (特权模式提示符)
Switch#config terminal (进入配置模式)
Switch(config)#enable password cisco (设置enable password为cisco)
Switch(config)#enable secret cisco1 (设置enable secret为sisco1)
Switch(config)#hostname C2950 (设置主机名为C2950)
C2950(config)#end (退回到特权模式)
C2950#
2.
C2950(config)#ip address 192.168.1.1 255.255.255.0 (设置交换机IP)
C2950(config)#ip default-gateway 192.168.1.254 (设置默认网关)