news 2026/8/31 19:04:26

中兴交换机配置总结

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
中兴交换机配置总结

中兴接口配置是模块化的,

一 VRF和接口配置

2.1 VRF配置

!<vrf>

ip vrf NET-manage

description NET-manage

rd 1:1

address-family ipv4

$

!</vrf>

2.2 接口配置

!<if-intf>

interface cgei-0/1/0/1

description TO-Leaf01

ip address X.X.14.125 255.255.255.252

no shutdown

switch attribute disable

$

interface cgei-0/1/0/2

description TO-Leaf02

ip address X.X.14.149 255.255.255.252

no shutdown

switch attribute disable

$

interface cgei-0/1/0/13

description NO-USE

$

interface cgei-0/1/0/14

description NO-USE

$

interface mgmt_eth //带外管理接口默认属于vrf NET-manage

ip address X.X.37.11 255.255.255.0

$

二 ISIS路由协议配置

!<isis>

router isis 1

area 86.0757

system-id 0100.3703.0011

is-type level-2-only

metric-style wide

fast-flood 15

lsp-refresh-time 32768

max-lsp-lifetime 65535

lsp-gen-interval 1 10 20 level-2

spf-interval 1 100 100 level-2

prefix-priority critical tag 100 level-2

interface loopback11

ip router isis

circuit-type level-2-only

tag 20

$

interface xlgei-0/2/0/1

ip router isis

circuit-type level-2-only

network point-to-point

$

interface xlgei-0/2/0/2

ip router isis

circuit-type level-2-only

network point-to-point

$

三 BGP路由协议配置

!<bgp>

router bgp 64722

synchronization disable

bgp router-id X.X.30.11

neighbor evpn peer-group

neighbor evpn remote-as 64722

neighbor evpn activate disable

neighbor evpn update-source loopback11

neighbor evpn fall-over bfd interval 500 min-rx 500 multiplier 3

neighbor X.X.30.13 remote-as 64722

neighbor X.X.30.13 peer-group evpn

neighbor X.X.30.14 remote-as 64722

neighbor X.X.30.14 peer-group evpn

neighbor X.X.30.15 remote-as 64723

neighbor X.X.30.15 activate disable

neighbor X.X.30.15 ebgp-multihop ttl 3

neighbor X.X.30.15 update-source loopback11

neighbor X.X.30.15 fall-over bfd interval 500 min-rx 500 multiplier 3

neighbor X.X.30.19 remote-as 64722

neighbor X.X.30.19 peer-group evpn

$

address-family l2vpn evpn

neighbor evpn activate

neighbor evpn route-reflector-client

neighbor X.X.30.15 activate

neighbor X.X.30.15 next-hop-unchanged

$

四 静态路由配置

!<static>

ip route vrf mng 0.0.0.0 0.0.0.0 X.X.37.254 name For_Management

ip route vrf mng X.X.36.0 255.255.254.0 X.X.37.254 name For_Management

!</static>

五 NTP配置

!<ntp>

ntp enable

ntp server vrf mng X.X.37.254 priority 1

ntp source interface mgmt_eth

!</ntp>

六 日志配置

!<alarm>

logging file default almlog

accept on

$

logging file default cmdlog

buffer 1000

$

logging file default netclog

accept on

$

logging file default snmplog

accept on

$

logging file default srvlog

accept on

interval 10

$

logging snmp

accept on

match cmdlog

$

syslog level warnings

syslog-server facility local4

syslog-server host vrf mng X.X.170.134 fport 5000 alarmlog cmdlog debugmsg servicelog braslog natlog netconflog

syslog-server host vrf mng X.X.170.135 fport 5000 alarmlog cmdlog debugmsg servicelog braslog natlog netconflog

!</alarm>

七 snmp配置

!<snmp>

snmp-server community encrypted admin@123 view AllView ro ipv4-access-list 2

000

snmp-server enable inform snmp

snmp-server enable inform bgp

snmp-server enable inform interface

snmp-server enable inform acl

snmp-server enable inform isis

snmp-server enable inform system

snmp-server enable trap ping-trace

snmp-server enable trap gm

snmp-server host vrf mng X.X.170.134 trap version 2c encrypted c9feff80ae160235f32e4f76720c59c5bbac9a3ea0ad0bfa92c8fe8c75670567

udp-port 162 snmp bgp mac ospf stp ppp arp rmon udld cfm efm lacp mc-elam tcp sctp stalarm cps interface acl fib pim isis rip msdp

aps config am um system ldp pwe3 vpn mpls-oam ptp tunnel-te radius dhcp bfd

snmp-server host vrf mng X.X.170.134 trap version 2c encrypted c9feff80ae160235f32e4f76720c59c5bbac9a3ea0ad0bfa92c8fe8c75670567

udp-port 162 ippool ntp ssm sqa ipsec cgn vrrp ftp_tftp ping-trace gm

snmp-server host vrf mng X.X.170.135 trap version 2c encrypted c9feff80ae160235f32e4f76720c59c5bbac9a3ea0ad0bfa92c8fe8c75670567

udp-port 162 snmp bgp mac ospf stp ppp arp rmon udld cfm efm lacp mc-elam tcp sctp stalarm cps interface acl fib pim isis rip msdp

aps config am um system ldp pwe3 vpn mpls-oam ptp tunnel-te radius dhcp bfd

snmp-server host vrf mng X.X.170.135 trap version 2c encrypted c9feff80ae160235f32e4f76720c59c5bbac9a3ea0ad0bfa92c8fe8c75670567

udp-port 162 ippool ntp ssm sqa ipsec cgn vrrp ftp_tftp ping-trace gm

snmp-server trap-source interface mgmt_eth

snmp-server version v2c enable

snmp-server version v3 enable

!</snmp>

八 ssh和telnet配置

8.1 ACL配置

!<ipv4-acl>

ipv4-access-list 2001

rule 10 permit 192.168.0.0 0.0.7.255

rule 15 permit 192.168.8.0 0.0.7.255

rule 20 permit 192.168.120.0 0.0.0.255

rule 1000 deny any

$

ipv4-access-list 2000

rule 10 permit 10.249.170.134 0.0.0.0

rule 20 permit 10.249.170.135 0.0.0.0

rule 30 permit 10.249.170.6 0.0.0.0

rule 1000 deny any

$

!</ipv4-acl>

8.2 设备登录用户配置

!<system-user>

system-user

authorization-template 1

bind aaa-authorization-template 2019

local-privilege-level 15

$

authorization-template 2

bind aaa-authorization-template 2019

local-privilege-level 5

$

authentication-template 1

bind aaa-authentication-template 2019

$

user-name COC_monitor

bind authentication-template 1

bind authorization-template 2

password encrypted d8dcd6017947bbfd1ed5ab7ad148be2fcaba46d82bcab5a97f3a855ec45fff29

$

user-name COC_operator

bind authentication-template 1

bind authorization-template 1

password encrypted bda2cd0e6ef30d139d8b6516ca1aca68256bc4ab2cd50b4f7dd54ac21069d365

$

user-name openstackadmin

bind authentication-template 1

bind authorization-template 1

password encrypted bda2cd0e6ef30d139d8b6516ca1aca68256bc4ab2cd50b4f7dd54ac21069d365

$

user-name yundiao_read

bind authentication-template 1

bind authorization-template 2

password encrypted 98fbe5d15da875e0b72f439496fdec30697dabbfed669640a5a2aa6832af355e

$

$

!</system-user>

8.3 ssh配置

!<ssh>

ssh server access-class ipv4 2001

ssh server enable

!</ssh>

4.telnet配置

!<telnet>

line console absolute-timeout 30

line console idle-timeout 10

line telnet server disable

line telnet absolute-timeout 30

line telnet idle-timeout 10

line telnet access-class ipv4 Login

line telnet max-link 10

!</telnet>

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/8/31 19:03:04

Harness三道防线:门禁、白名单、循环上限如何堵住线上bug

1. 先搞清楚 Harness 这 3 道防线到底在防什么测试圈最近有个高频词叫 Harness。很多人第一反应是&#xff1a;又出什么新工具了&#xff1f;是不是某个测试框架的插件&#xff1f;还有人把它和 Agent、Codex 这类概念混在一起聊。先说一个基本判断&#xff1a;Harness 真正的价…

作者头像 李华
网站建设 2026/8/31 19:02:28

SpringBoot+Vue+微信小程序游戏攻略分享系统毕设开发全攻略

简介&#xff1a;本资源是一套高分毕业设计级的游戏攻略分享微信小程序完整实现方案&#xff0c;面向计算机专业本科生、毕设与课程设计学习者&#xff0c;解决游戏资讯高效共享与跨端交互的实际需求。项目采用JavaSpringBoot构建后端服务&#xff0c;Vue开发管理后台&#xff…

作者头像 李华
网站建设 2026/8/31 19:02:22

8万字Java八股文开源合集:从HashMap到Kafka的高频考点与面试应用

最近不少读者都在问我同一个问题&#xff1a;Java面试到底还背不背八股文&#xff1f;这个问题我太有感触了&#xff0c;我自己从2015年开始参与团队技术招聘&#xff0c;这些年大大小小面过几百个人&#xff0c;对“八股文”这三个字的态度一直很矛盾。说它没用&#xff0c;面…

作者头像 李华
网站建设 2026/8/31 18:59:03

基于Python和Neo4j构建医疗知识图谱问答系统实践

简介&#xff1a;这是一套面向Python初学者与医疗AI入门者的知识图谱问答系统实战资源&#xff0c;聚焦健康医疗垂直领域&#xff0c;解决疾病症状查询、并发症推理与医学实体关联问答等典型需求。资源包含21个文件&#xff0c;以8个核心Python脚本&#xff08;如kbqa_test.py、…

作者头像 李华
网站建设 2026/8/31 18:51:32

2018字节跳动算法笔试复盘:高频考点与工程实践避坑指南

1. 2018年这批算法笔试到底在考什么先交代一下背景&#xff1a;2018年是算法岗校招的一个分水岭。那一年头部互联网公司的算法HC还远没有后来那么紧张&#xff0c;但考察的深度和广度已经明显上来了。字节跳动当时还在快速扩张期&#xff0c;头条、抖音几个产品线都在大量招人&…

作者头像 李华