交换机的端口描述信息
Catalyst 3548(Csico IOS系统)
Switch-PHY-3548(config)#interface f0/24 //进入端口配置模式
Switch-PHY-3548(config-if)#
Switch-PHY-3548(config-if)#description To-lib //配置端口描述信息(最多不超过240个字符)
Switch-PHY-3548(config-if)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:setport name
Switch-PHY-6500>(enable)set port name 4/5 mail-server //注:端口4/5下连的是一台
Switch-PHY-6500>(enable) //邮件服务器,可以此信息描述该端口
配置交换机端口的关闭与开启
Catalyst 3548(Csico IOS系统)
Switch-PHY-3548(config)#interface f0/24 //进入端口配置模式
Switch-PHY-3548(config-if)#
Switch-PHY-3548(config-if)#shutdown //关闭端口
Switch-PHY-3548(config-if)#no shutdown //开启端口
Switch-PHY-3548(config-if)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:setport enable //开启端口
set portdisable //关闭端口
Switch-PHY-6500>(enable)set port enable 4/5
Switch-PHY-6500>(enable)set port disable 4/5
配置交换机端口的通信方式
Catalyst 3548(Csico IOS系统)
Switch-PHY-3548(config)#interface f0/24 //进入端口配置模式
Switch-PHY-3548(config-if)#
Switch-PHY-3548(config-if)#duplex auto //缺省值为自适应
Switch-PHY-3548(config-if)#duplex full //设置为全双工
Switch-PHY-3548(config-if)#duplex half //设置为半双工
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:setport duplex full
set portduplex half
Switch-PHY-6500>(enable)set port duplex 5/1 full //设置为全双工
Switch-PHY-6500>(enable)set port duplex 5/1-24 full
Switch-PHY-6500>(enable)set port duplex 5/1 halt //设置为半双工
Switch-PHY-6500>(enable)set port duplex 5/1-24 halt
Switch-PHY-6500>(enable)
配置交换机端口的传输速率
Catalyst 3548(Csico IOS系统)
Switch-PHY-3548(config)#interface f0/24 //进入端口配置模式
Switch-PHY-3548(config-if)#
Switch-PHY-3548(config-if)#speed 10 //设置为10Mbps
Switch-PHY-3548(config-if)#speed 100 //设置为100Mbps
Switch-PHY-3548(config-if)#auto //设置为自动速率配置
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:setport speed auto Set speed to auto
set portspeed(10,100,1000)
Switch-PHY-6500>(enable)set port speed 5/1 auto //设置为自动速率配置
Switch-PHY-6500>(enable)set port speed 5/1-24 auto
Switch-PHY-6500>(enable)set port speed 5/1 10 //设置为10Mbps
Switch-PHY-6500>(enable)set port speed 5/1 100 //设置为100Mbps
Switch-PHY-6500>(enable)set port speed 5/1 1000 //设置为1000Mbps
Switch-PHY-6500>(enable)
————————————————
版权声明:本文为CSDN博主「Dark_Song」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/darkxiaoming/article/details/72582896