IOS配置基础(4)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
视频地址:http://www.enet.com.cn/eschool/video/autohtml/449/761/3.shtml
1、 2950交换机指示灯介绍
1900 交换机的输出文本
2950 交换机的输出文本
4.6 交换机的基本配置
1、 登录交换机并输入口令
2、 配置交换机
进入全局模式
switch#configure terminal
switch(config)#
进入接口模式
switch(config)#interface e0/1
switch(config-if)#
配置交换机的标识
Switch Name(config)#hostname abc
abc(config)#
3、 配置交换机的IP地址
Catalyst 1900
Switch_1900(config)#ip address {ip_address}{mask}
Eg Switch_1900(config)#ip address 192.168.1.1 255.255.255.0
Catalyst 2950
Switch_2950(config)#ip address {ip_address}{mask}
Eg: Switch_2950(config)#interface vlan 1
Switch_2950(config)#ip address 192.168.1.1 255.255.255.0
4、 配置交换机的网关
switch (config)# ip default-gateway {ip address}
eg:switch(config)#ip default-gateway 172.20.137.1
5、 显示交换机的状态信息
show version
show running-configuration
show interfaces
show ip
转载于:https://blog.51cto.com/vvv1420/165371