最新h3c交换机配置教程 h3c交换机配置镜像端口优秀
h3c不但拥有全线路由器和以太网交换机产品,还在网络安全、云存储、云桌面、硬件服务器、wlan、soho及软件管理系统等领域稳健成长。下面是小编整理的关于h3c交换机常用配置方法有哪些,希望大家认真阅读!
[h3c]super password h3c 设置用户分级密码
[h3c]undo super password 删除用户分级密码
[h3c]localuser bigheap 123456 1 web网管用户设置,1(缺省)为管理级用户,缺省admin,admin
[h3c]undo localuser bigheap 删除web网管用户
[h3c]user-interface aux 0 只支持0
[h3c-aux]idle-timeout 2 50 设置超时为2分50秒,若为0则表示不超时,默认为5分钟
[h3c-aux]undo idle-timeout 恢复默认值
[h3c]user-interface vty 0 只支持0和1
[h3c-vty]idle-timeout 2 50 设置超时为2分50秒,若为0则表示不超时,默认为5分钟
[h3c-vty]undo idle-timeout 恢复默认值
[h3c-vty]set authentication password 123456 设置telnet密码,必须设置
[h3c-vty]undo set authentication password 取消密码
[h3c]display users 显示用户
[h3c]display user-interface 显示用户界面状态
[h3c]vlan 20
[h3c]management-vlan 20
[h3c]interface vlan-interface 20 创建并进入管理vlan
[h3c]undo interface vlan-interface 20 删除管理vlan接口
[h3c-vlan-interface20]ip address 192.168.1.2 255.255.255.0 配置管理vlan接口静态ip地址(缺省为192.168.0.234)
[h3c-vlan-interface20]undo ip address 删除ip地址
[h3c-vlan-interface20]ip gateway 192.168.1.1 指定缺省网关(默认无网关地址)
[h3c-vlan-interface20]undo ip gateway
[h3c-vlan-interface20]shutdown 关闭接口
[h3c-vlan-interface20]undo shutdown 开启
[h3c]display ip 显示管理vlan接口ip的相关信息
[h3c]display interface vlan-interface 20 查看管理vlan的接口信息
[h3c-vlan-interface20]ip address dhcp-alloc 管理vlan接口通过dhcp方式获取ip地址
[h3c-vlan-interface20]undo ip address dhcp-alloc 取消
[h3c]display dhcp 显示dhcp客户信息
[h3c]interface ethernet0/3
[h3c-ethernet0/3]shutdown
[h3c-ethernet0/3]speed 100 速率,可为10,100,1000和auto(缺省)
[h3c-ethernet0/3]duplex full 双工,可为half,full和auto(缺省) 光口和汇聚后不能配置
[h3c-ethernet0/3]flow-control 开启流控,默认为关闭
[h3c-ethernet0/3]broadcast-suppression 20 设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响
[h3c-ethernet0/3]loopback internal 内环测试
[h3c-ethernet0/3]loopback external 外环测试,需插接自环头,必须为全双工或者自协商模式
[h3c-ethernet0/3]port link-type trunk 设置链路的类型为trunk,可为access(缺省),trunk
[h3c-ethernet0/3]port trunk pvid vlan 20 设置20为该trunk的缺省vlan,默认为1
(trunk线路两端的pvid必须一致)
[h3c-ethernet0/3]port access vlan 20 将当前access端口加入指定的vlan
[h3c-ethernet0/3]port trunk permit vlan all 允许所有的vlan通过当前的trunk端口,可多次使用该命令
[h3c-ethernet0/3]mdi auto 设置以太端口为自动监测,normal(缺省)为直通线,across为交叉线
[h3c]link-aggregation ethernet 0/1 to ethernet 0/4 将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚
[h3c]undo link-aggregation ethernet 0/1 删除该汇聚组
[h3c]link-aggregation mode egress 配置端口汇聚模式为根据目的mac地址进行负荷分担,可选为 ingress,egress和both,缺省为both
[h3c]monitor-port ethernet 0/2 将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变
[h3c]mirroring-port ethernet 0/3 to ethernet 0/4 both 将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文
[h3c]display mirror
[h3c]display interface ethernet 0/3
[h3c]display link-aggregation ethernet 0/
最新h3c交换机配置教程 h3c交换机配置镜像端口优秀
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。