h3c接入层交换机E126A配置:
1, 交换机有两对端口,既可以是光口,又可以是电口,默认为电口up,转换为光口 时要先down掉电口。
2, E126A、E152是为教育网设计的接入层交换机,支持dhcp snooping /loopback detecation ,loopback detection为单端口环路检测,开启端口环回监测功能 定时(缺省30S)监测各个端口是否被外部环回。如果发现某端口被环回,交换机 会将该端口处于受控工作状态,删除该端口对应的MAC地址转发表项,并向终端 上报Trap信息。但是端口的物理状态仍然为UP,这个端口虽然为up状态,其实 已经不能转发数据了。配置命令:
[Sysname-Ethernet1/1/1] loopback-detection enable
假定管理ipaddress: 10.212.212.2 汇聚gateway: 10.212.212.1
#sysname 212.2 主机名
#super password level 3 simple key2 super 密码
#loopback-detection enable 环路检测
#local-user admin
password simple key1
service-type telnet telnet服务通过
level 1
或者配置密码直接为:local user h3c
password simple key
service-type telnet
level 3
#vlan 1
#interface vlan-interface 1
ip address 10.212.212.2 255.255.255.0 配置管理地址
#
interface Aux1/0/0
#
interface Ethernet1/0/1
loopback-detection enable
#
interface Ethernet1/0/2
loopback-detection enable
#
interface Ethernet1/0/3
loopback-detection enable
#
interface Ethernet1/0/4
loopback-detection enable
#
interface Ethernet1/0/5
loopback-detection enable
#
interface Ethernet1/0/6
loopback-detection enable
#
interface Ethernet1/0/7
loopback-detection enable
#
interface Ethernet1/0/8
loopback-detection enable
#
interface Ethernet1/0/9
loopback-detection enable
#
interface Ethernet1/0/10
loopback-detection enable
#
interface Ethernet1/0/11
loopback-detection enable
#
interface Ethernet1/0/12
loopback-detection enable
#
interface Ethernet1/0/13
loopback-detection enable
#
interface Ethernet1/0/14
loopback-detection enable
#
interface Ethernet1/0/15
loopback-detection enable
#
interface Ethernet1/0/16
loopback-detection enable
#
interface Ethernet1/0/17
loopback-detection enable
#
interface Ethernet1/0/18
loopback-detection enable
#
interface Ethernet1/0/19
shutdown
loopback-detection enable
#
interface Ethernet1/0/20
shutdown
loopback-detection enable
#
interface Ethernet1/0/21
loopback-detection enable
#
interface Ethernet1/0/22
loopback-detection enable
#
interface Ethernet1/0/23
loopback-detection enable
#
interface Ethernet1/0/24
loopback-detection enable
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2
shutdown
#
interface GigabitEthernet1/2/1
#
interface GigabitEthernet1/2/2
shutdown
#
interface NULL0
#ip route-static 0.0.0.0 0.0.0.0 10.212.212.1 perference 60 配置路由
#user-interface aux 0
#user-interface vty 0 4 vty虚拟登陆线路0- 4共5条
authentication-mode scheme
#
return
本文出自 “5223660” 博客,谢绝转载!