# VedioNet割接脚本 **Repository Path**: Andromedaspace/vedio-net-cutover-script ## Basic Information - **Project Name**: VedioNet割接脚本 - **Description**: 共享割接脚本使用 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-24 - **Last Updated**: 2023-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VideoNet割接脚本 ## 介绍 共享割接脚本使用 ## 脚本说明 华三、华为交换机命令,此脚本做参考用,实际操作时,请根据实际软件版本为准。 ### 移动IDC .核心交换机堆叠线路冗余 *** #### CMCC.Video.Core.CE12808[视频网核心]增加STACK堆叠口 CE12800STACK堆叠连接方式示意图: ![输入图片说明](CE12800%E5%A0%86%E5%8F%A0%E7%A4%BA%E6%84%8F%E5%9B%BE.png) 步骤一:CE12808堆叠配置 ``` #关闭需要加入STACK堆叠端口的业务口 interface range 10G1/8/0/13 10G1/8/0/15 10G1/8/0/19 10G2/8/0/13 10G2/8/0/15 10G2/8/0/19 shutdown quit commit #将业务口加入STACK堆叠端口 interface 10G1/8/0/13 port mode stack stack-port 1/1 interface 10G1/8/0/15 port mode stack stack-port 1/1 interface 10G1/8/0/19 port mode stack stack-port 1/1 interface 10G2/8/0/13 port mode stack stack-port 1/1 interface 10G2/8/0/15 port mode stack stack-port 1/1 interface 10G2/8/0/19 port mode stack stack-port 1/1 quit commit ``` > 被配置为堆叠物理成员端口后,端口下会自动配置port crc-statistics trigger error-down ``` #开启堆叠端口中的成员端口 interface range 10G1/8/0/13 10G1/8/0/15 10G1/8/0/19 10G2/8/0/13 10G2/8/0/15 10G2/8/0/19 undo shutdown quit commit ``` 步骤二:STACK堆叠连线。 > - 光模块先提前插上,光纤先接第一台,第二台做完堆叠口后再接上 > - STACK堆叠接线表: | Stack-Port1/1 | Stack-Port2/1 | 备注 | |---------------|---------------|----| | 10G1/8/0/13 | 10G2/8/0/13 | | | 10G1/8/0/15 | 10G2/8/0/15 | | | 10G1/8/0/19 | 10G2/8/0/19 | | | 10G1/8/0/22 | 10G2/8/0/22 | (使用中) | 步骤三:STACK堆叠验证。 ``` #查看STACK堆叠的成员信息 display stack [ member member-id ] #查看STACK堆叠配置信息 display stack configuration [ member member-id | all ] #查看STACK堆叠拓扑信息 display stack topology [ link | neighbor ] ``` 步骤三:配置双主检测(已经配置过?)。 完成。 *** #### CMCC.TrafSign.Core.S7606[信号网核心]增加IRF堆叠口 IRF典型配置组网示意图(BFD MAD检测方式) ![输入图片说明](IRF%E5%85%B8%E5%9E%8B%E9%85%8D%E7%BD%AE%E7%BB%84%E7%BD%91%E5%9B%BE%EF%BC%88BFD%20MAD%E6%A3%80%E6%B5%8B%E6%96%B9%E5%BC%8F.png) 步骤一:配置MAD检测(已经配好,但端口未启用)。 ``` vlan 4001 des BFD_MAD quit interface range GE1/5/0/32 GE2/5/0/32 undo shutdown port access vlan 4001 quit interface vlan4001 mad bfd enable mad ip address 1.40.1.1 29 member 1 mad ip address 1.40.1.2 29 member 2 ``` 步骤二:MAD检测连线 > 千兆板卡是光电复用的,使用5/0/32电口时一定要把5/0/24光模块拔掉。 ``` GE1/5/0/32<------>GE2/5/0/32 ``` 步骤三:S7606IRF堆叠配置 ``` #关闭需要加入IRF堆叠端口的业务口 interface ten 1/4/0/6 shut interface ten 1/4/0/7 shut interface ten 1/4/0/8 shut quit #将业务口加入IRF堆叠端口 irf-port 1/1 port group interface ten 1/4/0/6 mode normal port group interface ten 1/4/0/7 mode normal port group interface ten 1/4/0/8 mode normal quit irf-port 2/2 port group interface ten 2/4/0/6 mode normal port group interface ten 2/4/0/7 mode normal port group interface ten 2/4/0/8 mode normal quit #开启IRF堆叠端口中的成员端口 interface interface-type interface-number undo shutdown quit #激活IRF端口下的配置(非必须?此种场景下文档未严格说明) irf-port-configuration active ``` 步骤四:IRF堆叠连线。 > 光模块先提前插上,光纤先接第一台,第二台做完堆叠口时再接上 | irf-Port1/1 | irf-Port2/2 | 备注 | |---------------|---------------|----| | XG1/2/0/8 | XG2/2/0/8 | (使用中) | | XG1/4/0/6 | XG2/4/0/6 | | | XG1/4/0/7 | XG2/4/0/7 | | | XG1/4/0/8 | XG2/4/0/8 | | 步骤五:IRF堆叠验证。 ``` #显示IRF中所有成员设备的相关信息 display irf #显示IRF的拓扑信息 display irf topology #显示IRF链路信息 display irf link #显示所有成员设备上重启以后生效的IRF配置 display irf configuration #显示IRF链路的负载分担模式 display irf-port load-sharing mode [ irf-port [ member-id/irf-port-number ] ] ``` 步骤六:验证MAD检测 ``` #显示MAD配置信息 display mad [ verbose ] ``` 完成。 ### 核心交换机互联改四链路 *** #### Video.Core.S10510X[视频网核心&信号网核心] 步骤一:提前拉线、测线、插光模块。 步骤二:三层链路聚合组配置: ``` interface route-aggregation 1000 link-aggregation mode dynamic #可选 lacp period short interface range Te1/5/0/16 Te2/5/0/16 port link-mode route port link-agg group 1000 interface route-aggregation 900 link-aggregation mode dynamic #可选 lacp period short interface range G1/3/0/8 G2/3/0/8 port link-mode route port link-agg group 900 interface vlanif 1001 undo ip add interface vlanif 1000 undo ip add interface route-aggregation 1000 ip addr quit interface route-aggregation 900 ip addr quit ``` 步骤三:二层链路聚合组成员移到三层链路聚合组 #### CMCC.Video.Core.CE12808[视频网核心] 步骤一:提前拉线、测线、插光模块。 > 接线表 | Video.Core.S10510X | CMCC.Video.Core.CE12808 | 备注 | |---------------|---------------|----| | BGAA102->RAGG1000: | Eth-Trunk1->Eth-Trunk500: | 聚合组 | | XG1/5/0/4 | 10G 1/8/0/0 | | | XG2/5/0/4 | 10G 2/8/0/0 | | | XG1/5/0/16 | 10G 1/8/0/9 | (新增) | | XG2/5/0/16 | 10G 2/8/0/9 | (新增) | 步骤二:三层链路聚合组增加成员端口配置: ``` interface eth-trunk 500 mode lacp undo portswitch interface range 10G 1/8/0/9 10G 2/8/0/9 eth-trunk 500 interface vlanif 1001 undo ip add 112.112.113.1 30 interface eth-trunk 500 ip addr 112.112.113.1 30 des Link-to-Video.Core.10510X ``` 步骤三:二层链路聚合组成员移到三层链路聚合组 #### CMCC.TrafSign.Core.S7606[信号网核心] 步骤一:提前拉线、测线、插光模块。 > 接线表 | Video.Core.S10510X | CMCC.TrafSign.Core.S7606 | 备注 | |---------------|---------------|----| | BAGG103: | BAGG1->RAGG200: | 聚合组 | | G1/3/0/7 | G1/5/0/1 | | | G2/3/0/7 | G2/5/0/1 | | | G1/3/0/8 | G1/5/0/16 | (新增) | | G2/3/0/8 | G2/5/0/16 | (新增) | 步骤二:三层链路聚合组增加成员端口配置: ``` interface route-aggregation interface-number link-aggregation mode dynamic #可选 lacp period short interface range G1/5/0/16 G2/5/0/16 port link-mode route port link-agg group 200 interface vlanif 1000 undo ip add 112.112.112.1 30 interface route-aggregation 200 ip addr 112.112.112.1 30 des Link-to-Video.Core.10510X quit ``` 步骤三:二层链路聚合组成员移到三层链路聚合组 ### 移动自有网络设备网关上移 *** #### CMCC.Video.Core.CE12808[视频网核心] ``` vlan batch 10 to 11 200 to 204 2451 to 2500 int eth-trunk8 port link-type trunk port trunk allow-pass vlan 1 port trunk allow-pass vlan 10 to 11 2451 to 2500 quit vlan 10 description TO-shijiaojing-gaojiadadui-luoxian Vlanif11 description TO-shijiaojing-gaosuzhongdui-luoxian vlan 200 description TO-SinPin aggregate-vlan access-vlan 2451 to 2460 vlan 201 description TO-SinPin aggregate-vlan access-vlan 2461 to 2470 vlan 202 description PTN-ShiPinWang aggregate-vlan access-vlan 2471 to 2480 vlan 203 description TO-SinPin aggregate-vlan access-vlan 2481 to 2490 vlan 204 description TO-SinPin aggregate-vlan access-vlan 2491 to 2500 # interface Vlanif10 description TO-shijiaojing-gaojiadadui-luoxian ip address 33.175.233.254 255.255.255.128 # interface Vlanif11 description TO-shijiaojing-gaosuzhongdui-luoxian ip address 33.175.233.1 255.255.255.128 # interface Vlanif200 description To PTN-ShiPinWang ip address 33.175.228.1 255.255.255.128 # interface Vlanif201 description To PTN-ShiPinWang ip address 33.175.228.129 255.255.255.128 # interface Vlanif202 description To PTN-ShiPinWang ip address 33.175.229.1 255.255.255.0 # interface Vlanif203 description To PTN-ShiPinWang ip address 33.175.230.1 255.255.255.0 # interface Vlanif204 description To PTN-ShiPinWang ip address 33.175.231.1 255.255.255.0 # ``` #### CMCC.TrafSign.Core.S7606[信号网核心] ``` vlan 2401 to 2409 2410 to 2420 3001 to 3010 2421 to 2430 #5560上的vlan100改成vlan99 vlan 99 description TO PTN-XinHaoWang supervlan subvlan 2401 to 2409 # vlan 101 description TO PTN-XinHaoWang supervlan subvlan 2410 to 2420 # vlan 102 description TO PTN-xinhaowang supervlan subvlan 3001 to 3010 # vlan 103 description TO_PTN-XinHaoWang-yayunyoudaoping supervlan subvlan 2421 to 2430 interface Vlan-interface99 description To PTN-XinHaoWang ip address 33.175.225.129 255.255.255.224 # interface Vlan-interface101 description TO PTN-xinhaowang ip address 33.175.225.161 255.255.255.224 # interface Vlan-interface102 description TO PTN-xinhaowang ip address 33.175.232.1 255.255.255.0 # interface Vlan-interface103 description TO PTN-XinHaoWang-yayunyoudaoping ip address 33.175.234.1 255.255.255.224 ``` #### Video.Core.S10510X[视频网核心&信号网核心] 增加路由条目 详见VSCode