中兴交换机5950静态IP配置
1,5950售价在两万至三万之间,根据型号的不同,价格稍有区别,但均为智能三层交 换机,具有路由功能,实现千兆接入,万兆扩展,是构建骨干网络的可选交换机; 另一方面,中兴配置命令较为简单,但不是主流产品,可作为入门的学习经过。下面的配置为一台5950—28TM交换机,共24口,两对光纤进行接入、输出。
详细配置 :
①:主机名
②:用户名机器密码
③:建立VLAN,加端口后,配置ip地址,
④:设置交换机虚接口loopback
interface loopback1
ipaddress 10.0.4.112 255.255.255.255
⑤:设置smartgroup用以防止光口环路
interface smartgroup1
switchport mode hybird
switchport hybird native vlan 760(主VLAN)
switchport hybird vlan 333 tag(混合VLAN)
smartgroup mode on
⑤:设置ospf
network 10.0.4.40 0.0.0.3 area 212
network 10.0.5.112 0.0.0.0 area 212
network 10.210.96.0 0.0.0.255 area 212
network 10.210.97.0 0.0.0.255 area 212
network 10.210.98.0 0.0.0.255 area 212
network 10.210.99.0 0.0.0.255 area 212
network 10.210.100.0 0.0.0.255 area 212
network 10.210.101.0 0.0.0.255 area 212
area 0.0.0.212 stub no-summar
⑥:配置环路检测
loop-detect interface gei_1/1-24 enable
2, 下面为全部配置
本端地址为 10.0.4.42
对端地址为 10.0.4.41
路由ID为 10.0.5.112
VLAN ID为 760
ospf区域为 212
West9(config)#show runn
Building configuration...
!
!
vlan 333
name ecard
!
vlan 760
name to6808
!
vlan list 1
vlan list 100
vlan list 200
vlan list 300
vlan list 400
vlan list 500
vlan list 600
!
!
!
!
!
!
!
interface loopback1
ip address 10.0.5.112 255.255.255.255
out_index 34
!
interface vlan 100
ip address 10.210.96.1 255.255.255.0
out_index 27
description 1ceng port1-3
!
interface vlan 200
ip address 10.210.97.1 255.255.255.0
out_index 28
description 2ceng port4-6
!
interface vlan 300
ip address 10.210.98.1 255.255.255.0
out_index 29
description 3ceng port7-9
!
interface vlan 400
ip address 10.210.99.1 255.255.255.0
out_index 30
description 4ceng port10-12
!
interface vlan 500
ip address 10.210.100.1 255.255.255.0
out_index 31
description 5ceng port13-15
!
interface vlan 600
ip address 10.210.101.1 255.255.255.0
out_index 32
description 6ceng port16-18
!
interface vlan 760
ip address 10.0.4.42 255.255.255.252
out_index 33
!
interface null1
out_index 1
!
interface smartgroup1
out_index 35
switchport mode hybrid
switchport hybrid native vlan 760
switchport hybrid vlan 333 tag
smartgroup mode on
!
interface gei_1/1
out_index 3
negotiation auto
switchport access vlan 100
switchport qinq normal
!
interface gei_1/2
out_index 4
negotiation auto
switchport access vlan 100
switchport qinq normal
!
interface gei_1/3
out_index 5
negotiation auto
switchport access vlan 100
switchport qinq normal
!
interface gei_1/4
out_index 6
negotiation auto
switchport access vlan 200
switchport qinq normal
!
interface gei_1/5
out_index 7
negotiation auto
switchport access vlan 200
switchport qinq normal
!
interface gei_1/6
out_index 8
negotiation auto
switchport access vlan 200
switchport qinq normal
!
interface gei_1/7
out_index 9
negotiation auto
switchport access vlan 300
switchport qinq normal
!
interface gei_1/8
out_index 10
negotiation auto
switchport access vlan 300
switchport qinq normal
!
interface gei_1/9
out_index 11
negotiation auto
switchport access vlan 300
switchport qinq normal
!
interface gei_1/10
out_index 12
negotiation auto
switchport access vlan 400
switchport qinq normal
!
interface gei_1/11
out_index 13
negotiation auto
switchport access vlan 400
switchport qinq normal
!
interface gei_1/12
out_index 14
negotiation auto
switchport access vlan 400
switchport qinq normal
!
interface gei_1/13
out_index 15
negotiation auto
switchport access vlan 500
switchport qinq normal
!
interface gei_1/14
out_index 16
negotiation auto
switchport access vlan 500
switchport qinq normal
!
interface gei_1/15
out_index 17
negotiation auto
switchport access vlan 500
switchport qinq normal
!
interface gei_1/16
out_index 18
negotiation auto
switchport access vlan 600
switchport qinq normal
!
interface gei_1/17
out_index 19
negotiation auto
switchport access vlan 600
switchport qinq normal
!
interface gei_1/18
out_index 20
negotiation auto
switchport access vlan 600
switchport qinq normal
!
interface gei_1/19
out_index 21
negotiation auto
switchport access vlan 333
switchport qinq normal
!
interface gei_1/20
out_index 22
negotiation auto
switchport access vlan 333
switchport qinq normal
!
interface gei_1/21
out_index 23
hybrid-attribute copper
negotiation auto
switchport access vlan 333
switchport qinq normal
!
interface gei_1/22
out_index 24
hybrid-attribute copper
negotiation auto
switchport access vlan 333
switchport qinq normal
!
interface gei_1/23
out_index 25
hybrid-attribute fiber
no negotiation auto
switchport mode hybrid
switchport hybrid native vlan 760
switchport hybrid vlan 333 tag
switchport qinq normal
smartgroup 1 mode on
!
interface gei_1/24
out_index 26
hybrid-attribute fiber
no negotiation auto
switchport mode hybrid
switchport hybrid native vlan 760
switchport hybrid vlan 333 tag
switchport qinq normal
smartgroup 1 mode on
!
!
ztp vlan 1
!
multicast-limit 1024
ip igmp snooping
no ip igmp snooping ssm-mapping
!
no ipv6 mld snooping
!
vlan 1
mld snooping
!
!
router ospf 1
network 10.0.4.40 0.0.0.3 area 0.0.0.212
network 10.0.5.112 0.0.0.0 area 0.0.0.212
network 10.210.96.0 0.0.0.255 area 0.0.0.212
network 10.210.97.0 0.0.0.255 area 0.0.0.212
network 10.210.98.0 0.0.0.255 area 0.0.0.212
network 10.210.99.0 0.0.0.255 area 0.0.0.212
network 10.210.100.0 0.0.0.255 area 0.0.0.212
network 10.210.101.0 0.0.0.255 area 0.0.0.212
area 0.0.0.212 stub no-summary
!
!
time-range disable
!
protocol-packet-protect enable
loop-detect interface gei_1/1 enable
loop-detect interface gei_1/2 enable
loop-detect interface gei_1/3 enable
loop-detect interface gei_1/4 enable
loop-detect interface gei_1/5 enable
loop-detect interface gei_1/6 enable
loop-detect interface gei_1/7 enable
loop-detect interface gei_1/8 enable
loop-detect interface gei_1/9 enable
loop-detect interface gei_1/10 enable
loop-detect interface gei_1/11 enable
loop-detect interface gei_1/12 enable
loop-detect interface gei_1/13 enable
loop-detect interface gei_1/14 enable
loop-detect interface gei_1/15 enable
loop-detect interface gei_1/16 enable
loop-detect interface gei_1/17 enable
loop-detect interface gei_1/18 enable
loop-detect interface gei_1/19 enable
loop-detect interface gei_1/20 enable
loop-detect interface gei_1/21 enable
loop-detect interface gei_1/22 enable
loop-detect interface gei_1/23 enable
loop-detect interface gei_1/24 enable
!
!
!
nas
!
bfd-version 1
!
!
!
!
version V4.08.23
!
nvram mng-ip-address 10.40.89.14 255.255.255.0
!
nvram boot-username target
!
nvram boot-password target
!
nvram boot-server 10.40.89.78
!
nvram default-gateway 10.40.89.78
!
nvram imgfile-location local flash img/zxr10.zar
!
hostname West9
!
enable secret level 15 5 iQR1H87m32OzJQF7MQ8yRg==
!
username admin password harbour3#
!
user-authentication-type local
user-authorization-type local
!
line console 0
no login authentication
!
banner incoming @
************************************************
Welcome to ZXR10 5950-28TM Switch of ZTE Corporation
************************************************
@
!
!
!
!
snmp-server location No.68 Zijinghua Rd. Yuhuatai District, Nanjing,
snmp-server contact +86-25-52870000
snmp-server packetsize 1400
snmp-server engine-id 830900020300010289d64401
snmp-server view AllView internet included
snmp-server view DefaultView system included
!
!
!
protect
tcp synflood-protect disable
tcp synflood-protect defence 0 waittime 30 num 1
tcp synflood-protect max-connect high 90 low 60
tcp synflood-protect one-minute high 80 low 50
!
no ftp-server enable listen 21
ftp-server top-directory /flash/
!
logging on
logging buffer 200
logging mode fullcycle
logging console notifications
logging level notifications
logging timestamps datetime localtime
alarm cpuload-on
alarm cpuload-interval 30
alarm cpuload-threshold high-grade 95 middle-grade 85 low-grade 75
syslog-server facility local0
!
line console idle-timeout 120
line console absolute-timeout 1440
line telnet idle-timeout 120
line telnet absolute-timeout 1440
line telnet max-link 16
!
ssh server authentication ispgroup 1
ssh server authentication mode local
ssh server authentication type chap
no ssh server only
ssh server version 2
!
!
radius auto-change off
!
!
!
!
!
tacacs disable
tacacs-server timeout 5
tacacs-server packet 1024
!
!
!
!
control-plane-security enable
转载于:https://blog.51cto.com/5233660/989052
来源:CSDN
作者:weixin_34292402
链接:https://blog.csdn.net/weixin_34292402/article/details/92635751