当前位置: 首页 > news >正文

中兴交换机配置总结

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

一 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>

http://www.cnnetsun.cn/news/4334825.html

相关文章:

  • LangChain1.2学习第三章—— LangSmith、提示词模板、历史对话、消息
  • Harness三道防线:门禁、白名单、循环上限如何堵住线上bug
  • SpringBoot+Vue+微信小程序游戏攻略分享系统毕设开发全攻略
  • 8万字Java八股文开源合集:从HashMap到Kafka的高频考点与面试应用
  • 基于Python和Neo4j构建医疗知识图谱问答系统实践
  • 2018字节跳动算法笔试复盘:高频考点与工程实践避坑指南
  • 嵌入式ROS双系统通信实战:上位机+驱动协同设计与CMake构建
  • Simulink光伏MPPT仿真全解析:boost电路与算法实现
  • 基于SpringBoot+Vue的在线问卷调查系统从开发到论文全流程解析
  • 程序员面试八股文攻略:最强八股文第四版拆解与高效使用指南
  • STM32低功耗串口唤醒实战:睡眠与停止模式详解及代码实现
  • 单目3D检测与BEV可视化:Python工程实现与坐标变换详解
  • 代码随想录最强八股文第四版:从Java基础到分布式面试通关指南
  • 大模型+多模态感知:人形机器人TonyPi全功能实战解析
  • 三极管饱和深度:从面试考点到开关电路工程设计
  • 9,000张真菌感染图像分类数据集:设计与训练实践
  • 具身智能商业化应用难题与TVA破解之道(17)
  • 多模态遥感图像处理实战:红外、可见光、高光谱与SAR配准及目标检测全流程
  • MATLAB与XFOIL耦合的翼型气动分析及优化系统实现
  • 三极管静态工作点详解:计算、失真分析与放大电路设计
  • 元初混沌体系 第三卷 卫星互联网全域周天拓扑体系:第七十二篇 三层星座周天分层拓扑整体联动总规范
  • AI写小说软件哪款好用?8款高口碑小说工具盘点,一篇讲清楚怎么选(附避坑指南)
  • 网易校招前端笔试全解析:考点地图与高效备考策略
  • 硬件工程师面试避坑指南:核心考点与项目复盘全攻略
  • 三极管放大电路静态工作点详解:从计算到仿真实践
  • AI辅助科研赋能科研创新提质增效 推动科研范式升级与成果产出加速
  • DevOps工具链实战:从Jenkins到Kubernetes的落地指南
  • Moderna与默沙东mRNA癌症疫苗试验成果惊人,《AI 2027》预言不断成真引关注
  • FANUC机器人与西门子PLC的PROFINET通信配置与调试要点
  • 9款AI写论文哪个好?实测发现它凭“真实文献+硬核图表”杀出重围