5252 交换机配置文档
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
初始密码为:zxr10
ZXR10#cd cfg (转到cfg目录)
ZXR10#dir (查看是否有startrun.dat)
ZXR10#del startrun.dat (删除启动默认配置文件)
Are you sure to delete files?[yes/no]:y //清空配置,只需进入cfg然后删除startrun.dat文件后重启。
如果交换机形成一个环路需要开stp服务:spanning-tree enable
xx:配置前需要修改(按标准)
开始配置:
enable
zxr10
configure terminal
hostname CNC-CC-5-6B1
enable secret admin
username admin password admin
vlan 2
name VC
switchport pv gei_1/1
switchport pv gei_1/5
switchport pv gei_1/7
switchport pv gei_1/9
switchport pv gei_1/11
switchport pv gei_1/13
switchport pv gei_1/15
switchport pv gei_1/17
switchport pv gei_1/19
switchport pv gei_1/21
switchport pv gei_1/23
switchport pv gei_1/25
switchport pv gei_1/27
switchport pv gei_1/29
switchport pv gei_1/31
switchport pv gei_1/33
switchport pv gei_1/35
switchport pv gei_1/37
switchport pv gei_1/39
switchport pv gei_1/41
switchport pv gei_1/43
switchport pv gei_1/45
switchport pv gei_1/47
!
vlan 51
name V51
switchport pv gei_1/2
switchport pv gei_1/6
switchport pv gei_1/8
switchport pv gei_1/10
switchport pv gei_1/12
switchport pv gei_1/14
switchport pv gei_1/16
switchport pv gei_1/18
switchport pv gei_1/20
switchport pv gei_1/22
switchport pv gei_1/24
switchport pv gei_1/26
switchport pv gei_1/28
switchport pv gei_1/30
switchport pv gei_1/32
switchport pv gei_1/34
switchport pv gei_1/36
switchport pv gei_1/38
switchport pv gei_1/40
switchport pv gei_1/42
switchport pv gei_1/44
switchport pv gei_1/46
switchport pv gei_1/48
!
#inter gei_1/48
#hybrid-attribute fiber
!
interface vlan 2
ip address 172.16.0.51 255.255.0.0
!
interface gei_1/3
switchport mode trunk
switchport trunk vlan 1-2
!
interface gei_1/4
switchport mode trunk
switchport trunk vlan 1-2
!
snmp-server community public view AllView rw
!
exit
write
华为配置SNMP
#
snmp-agent
snmp-agent local-engineid 800063A2000FE24B07B66877
snmp-agent community read public
snmp-agent sys-info version all
#