2024年6月5日发(作者:从暄玲)
1
理代中俣
>未来教育在眼前
-■
附录
5
:如何设置交换机的端口速率、双工模式 ..................................................
1
附录
6
:如何关闭交换机的生成树协议及启用端口快速 ............................................
4
附录
7
:如何设置路由器、交换机的组播 ........................................................
7
附录5:如何设置交换机的端口速率、双工模式
注:黑体为命令,底纹为注释,斜体为举例。
因同一厂家不同型号及同一型号不同版本的
IOS
会有所不同,如与本文中介绍有
所不同,为正常情况,请参考厂家相关设备技术资料或联系相关技术支持。
原则:首先配置端口的速度,然后配置双工模式,千兆端口请参考设备技术手册。
CISCO
交换机
★在基于
IOS
交换机上的配置
Switch
〉
enable
Switch# con figure termi nal
Switch(c on fig)# in terface in terface module/nu mber
例:
Switch
(co nfig)# in terface faO/3
进入以太网端口 EthernetO/3 的配置模式
Switch(co nfig-if)# speed {10|100|1000}
设置端口的速率
例:Switch(config-if)#
Switch(config-if)#
speed 100 将以太网端口 Ethernet0/3 端口速率设置为 100Mbps
设置以太网端口的全双工
duplex {full|half|auto} /
半双工属性
Switch(config-if)# end
或两次
exit
返回到特权模式下
将配置文件保存到
NVRAM
中
Switch# copy runnin g-c onfig startup-c onfig
例:
Switch(config-if)# duplex full
将以太网端口
Ethernet0/3
端口设为全双工
★在基于
CatOS
交换机上的配置
进入特权用户
Switch> enable
Switch> (en able) set port speed mod_num/port_ num {10|100|1000|auto}
设置端口的速率
例:Switch> (enable)
Switch> (en able) set port
set port speed 2/3 100 将端口 2/3 的速度设为 100Mbps
设置端口的双工模式
mod _n um/port_ num {full|half}
例:Switch> (enable)
set port
duplex
2/3 full 将端口 2/3 设为全双工
第1页共12页 培训部 010-5885 8866 转 8086 8092
>未来教育在眼前
1
理代中戾
zoneKey
查看端口配置结果
Switch
〉(
en able) show port mod_nu m/port_ num
例:Switch> (enable) show port 2/3 查看端口 2/3 的配置结果
基于
CatOS
的交换机输入完的命令立即存储到
NVRAM
中
华为交换机
Quidway>system-view
[Quidway] in terface {i nterface_type in terface _nu m|i nterface _n ame}
进入系统视图
进入以太网端口配置模式
例:
[Quidway] in terface ethernetO/3
EthernetO/3 的配置模式
[Quidway-EthernetO/3] speed {
例:
进入端口
[Quidway-EthernetO/3]
[Quidway-EthernetO/3]
duplex { half | full
| auto }
设置以太网端口的全双工
/
半双工属性
例:[Quidway-Ethernet0/3] duplex full
将端口 Ethernet0/3设置为全双工
港湾交换机
Harbour
〉
enable
Password:******
Harbour(c on fig)# config port [
进入配置模式
输入口令
10| 100| auto }
设置端口的速率
speed 100 将端口 EthernetO/3 速率设置为 100Mbps
例: config port 24 auto off
config port 3,7,9,18-22 auto off
关闭端口 24的自适应模式
关闭端口 3、7、9、18-22的自适应模式
speed [10|100|1000]
设置端口速率
Harbour(co nfig)# config port [
例:config port 20 speed 100
config port all speed 100
Harbour(c on fig)# config port [
例:config port 20 duplex full
config port all duplex full
神州数码交换机
User Access Verificati
将端口 20 速率设为 100Mbps
关闭自适应模式
on
为打开
将所有端口速率设为 100Mbps
duplex [full|half]
设置端口双工模式
将端口 20设为全双工
将所有端口设为全双工
(half
为半双工
)
on
Username: admin
Password: ******
CLI sessi on with the host is ope ned.
To end the CLI sessi on, en ter [Exit].
Con sole#
Con sole# con figure
第2页共12页 培训部 010-5885 8866 转 8086 8092
输入账号、密码进入特权模式
进入全局配置模式
2024年6月5日发(作者:从暄玲)
1
理代中俣
>未来教育在眼前
-■
附录
5
:如何设置交换机的端口速率、双工模式 ..................................................
1
附录
6
:如何关闭交换机的生成树协议及启用端口快速 ............................................
4
附录
7
:如何设置路由器、交换机的组播 ........................................................
7
附录5:如何设置交换机的端口速率、双工模式
注:黑体为命令,底纹为注释,斜体为举例。
因同一厂家不同型号及同一型号不同版本的
IOS
会有所不同,如与本文中介绍有
所不同,为正常情况,请参考厂家相关设备技术资料或联系相关技术支持。
原则:首先配置端口的速度,然后配置双工模式,千兆端口请参考设备技术手册。
CISCO
交换机
★在基于
IOS
交换机上的配置
Switch
〉
enable
Switch# con figure termi nal
Switch(c on fig)# in terface in terface module/nu mber
例:
Switch
(co nfig)# in terface faO/3
进入以太网端口 EthernetO/3 的配置模式
Switch(co nfig-if)# speed {10|100|1000}
设置端口的速率
例:Switch(config-if)#
Switch(config-if)#
speed 100 将以太网端口 Ethernet0/3 端口速率设置为 100Mbps
设置以太网端口的全双工
duplex {full|half|auto} /
半双工属性
Switch(config-if)# end
或两次
exit
返回到特权模式下
将配置文件保存到
NVRAM
中
Switch# copy runnin g-c onfig startup-c onfig
例:
Switch(config-if)# duplex full
将以太网端口
Ethernet0/3
端口设为全双工
★在基于
CatOS
交换机上的配置
进入特权用户
Switch> enable
Switch> (en able) set port speed mod_num/port_ num {10|100|1000|auto}
设置端口的速率
例:Switch> (enable)
Switch> (en able) set port
set port speed 2/3 100 将端口 2/3 的速度设为 100Mbps
设置端口的双工模式
mod _n um/port_ num {full|half}
例:Switch> (enable)
set port
duplex
2/3 full 将端口 2/3 设为全双工
第1页共12页 培训部 010-5885 8866 转 8086 8092
>未来教育在眼前
1
理代中戾
zoneKey
查看端口配置结果
Switch
〉(
en able) show port mod_nu m/port_ num
例:Switch> (enable) show port 2/3 查看端口 2/3 的配置结果
基于
CatOS
的交换机输入完的命令立即存储到
NVRAM
中
华为交换机
Quidway>system-view
[Quidway] in terface {i nterface_type in terface _nu m|i nterface _n ame}
进入系统视图
进入以太网端口配置模式
例:
[Quidway] in terface ethernetO/3
EthernetO/3 的配置模式
[Quidway-EthernetO/3] speed {
例:
进入端口
[Quidway-EthernetO/3]
[Quidway-EthernetO/3]
duplex { half | full
| auto }
设置以太网端口的全双工
/
半双工属性
例:[Quidway-Ethernet0/3] duplex full
将端口 Ethernet0/3设置为全双工
港湾交换机
Harbour
〉
enable
Password:******
Harbour(c on fig)# config port [
进入配置模式
输入口令
10| 100| auto }
设置端口的速率
speed 100 将端口 EthernetO/3 速率设置为 100Mbps
例: config port 24 auto off
config port 3,7,9,18-22 auto off
关闭端口 24的自适应模式
关闭端口 3、7、9、18-22的自适应模式
speed [10|100|1000]
设置端口速率
Harbour(co nfig)# config port [
例:config port 20 speed 100
config port all speed 100
Harbour(c on fig)# config port [
例:config port 20 duplex full
config port all duplex full
神州数码交换机
User Access Verificati
将端口 20 速率设为 100Mbps
关闭自适应模式
on
为打开
将所有端口速率设为 100Mbps
duplex [full|half]
设置端口双工模式
将端口 20设为全双工
将所有端口设为全双工
(half
为半双工
)
on
Username: admin
Password: ******
CLI sessi on with the host is ope ned.
To end the CLI sessi on, en ter [Exit].
Con sole#
Con sole# con figure
第2页共12页 培训部 010-5885 8866 转 8086 8092
输入账号、密码进入特权模式
进入全局配置模式