• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

MSR路由器V5转换V7命令

2天前提问
  • 0关注
  • 0收藏,57浏览
粉丝:1人 关注:2人

问题描述:

老设备是V5的 ,新设备是MSR5660的V7的,哪位大神可以帮忙把命令翻译成V7的,拜谢!

 


#
 version 5.20, Release 1910, Standard
#
 sysname 3_ZT_WX_C_ H3C5040_1
#
 clock timezone beijing add 08:00:00 
#
 domain default enable system 
#
 telnet server enable 
#
 dar p2p signature-file cfa0:/p2p_default.mtd
#
 multicast routing-enable
#
 mpls lsr-id 192.168.184.145
#
vlan 1
#
mpls
 lsp-trigger all 
#
mpls l2vpn
#
mpls ldp
#
mpls ldp remote-peer 1
 remote-ip 192.168.184.2
#
domain system 
 access-limit disable 
 state active 
 idle-cut disable 
 self-service-url disable 
#
user-group system
#
local-user admin
 password cipher AU*2(-:=JB2/3:L02.;;!Q!!
 authorization-attribute level 3
 service-type telnet
local-user superuser
 password cipher Q`R^W:7'V,SN#".;_P%&+A!!
 authorization-attribute level 3
 service-type ssh telnet terminal
#
cwmp
 undo cwmp enable
#
interface Aux0
 async mode flow
 link-protocol ppp
#
interface Cellular0/0
 async mode protocol
 link-protocol ppp
#
interface Ethernet0/0
 port link-mode route
 shutdown
#
interface Ethernet5/0
 port link-mode route
 description TO_ 3_ZT_WX_C_ H3C5040_2
 ip address 192.168.178.229 255.255.255.252 
 pim sm
 mpls
 mpls mtu 1580
 mpls ldp
#
interface Ethernet5/1
 port link-mode route
#
interface Ethernet5/1.1510
 vlan-type dot1q vid 1510
 mpls l2vc 192.168.184.2 530629111
#
interface Ethernet5/2
 port link-mode route
#
interface Ethernet5/3
 port link-mode route
#
interface NULL0
#
interface LoopBack0
 description TO_3_ZT_WX_C_ H3C5040_1
 ip address 192.168.184.145 255.255.255.255 
#
interface GigabitEthernet0/0
 port link-mode route
 description TO_2_ZT_C_ HuaWei _NE20E-X6_1
 ip address 192.168.178.218 255.255.255.252 
 pim sm
 mpls
 mpls mtu 1580
 mpls ldp
 undo ip fast-forwarding
#
interface GigabitEthernet0/1
 port link-mode route
 description GE0-1_100M-to-YN_WX_Cisco7304_2
 duplex full
 speed 100
 shutdown
 undo ip fast-forwarding
#
interface GigabitEthernet0/2
 port link-mode route
 description TO_3_ZT_WX_C_ HuaWei_ S7706_1
 ip address 192.168.178.233 255.255.255.252 
 pim sm
 mpls
 mpls mtu 1580
 mpls ldp
#
interface Encrypt11/0
#
ospf 100 router-id 192.168.184.145 
 import-route direct
 import-route static
 area 0.0.3.102 
  network 192.168.178.216 0.0.0.3 
  network 192.168.178.228 0.0.0.3 
  network 192.168.178.232 0.0.0.3 
  network 192.168.184.145 0.0.0.0 
#
#
voice-setup
 voip called-start normal
 #
 sip
 #
 sip-server
  #
  call-rule-set
  #
  call-route
 #
 dial-program
  default entity fax protocol standard-t38
  default entity fax protocol standard-t38 hb-redundancy 0
  default entity fax protocol standard-t38 lb-redundancy 0
  select-rule type-first 2 1 3 4
  #
  number-substitute 100
   rule 1 ^1... 97451...
   rule 2 ^2... 97452...
   rule 3 ^3... 97453...
   rule 4 ^4... 97454...
   rule 5 ^5... 97455...
   rule 6 ^6... 97456...
   rule 8 ^8... 97458...
   rule 9 ^70.. 974570..
   rule 10 ^71.. 974571..
   rule 11 ^72.. 974572..
   rule 12 ^73.. 974573..
   rule 13 ^74.. 974574..
  #
  substitute outgoing-call called 100
  #
  entity 100 pots
   dial-prefix 75
   line 6/0
   match-template 974575..
  #
  entity 101 pots
   dial-prefix 75
   line 6/1
   match-template 974575..
  #
  entity 102 pots
   dial-prefix 75
   line 6/2
   match-template 974575..
  #
  entity 103 pots
   dial-prefix 75
   line 6/3
   match-template 974575..
  #
  entity 104 pots
   dial-prefix 76
   line 6/0
   match-template 974576..
  #
  entity 105 pots
   dial-prefix 76
   line 6/1
   match-template 974576..
  #
  entity 106 pots
   dial-prefix 76
   line 6/2
   match-template 974576..
  #
  entity 107 pots
   dial-prefix 76
   line 6/3
   match-template 974576..
  #
  entity 108 pots
   dial-prefix 77
   line 6/0
   match-template 974577..
  #
  entity 109 pots
   dial-prefix 77
   line 6/1
   match-template 974577..
  #
  entity 110 pots
   dial-prefix 77
   line 6/2
   match-template 974577..
  #
  entity 111 pots
   dial-prefix 77
   line 6/3
   match-template 974577..
  #
  entity 112 pots
   dial-prefix 78
   line 6/0
   match-template 974578..
  #
  entity 113 pots
   dial-prefix 78
   line 6/1
   match-template 974578..
  #
  entity 114 pots
   dial-prefix 78
   line 6/2
   match-template 974578..
  #
  entity 115 pots
   dial-prefix 78
   line 6/3
   match-template 974578..
  #
  entity 116 pots
   dial-prefix 79
   line 6/0
   match-template 974579..
  #
  entity 117 pots
   dial-prefix 79
   line 6/1
   match-template 974579..
  #
  entity 118 pots
   dial-prefix 79
   line 6/2
   match-template 974579..
  #
  entity 119 pots
   dial-prefix 79
   line 6/3
   match-template 974579..
  #
  entity 1009000 voip
   address ras
   match-template 9.......
   outband h245
  #
  entity 1009750 voip
   address ip 10.166.2.10
   match-template 9750....
   outband h245
 #
 aaa-client
 #
 gk-client
  area-id 1#
  gk-id ztwx-zone gk-addr 192.168.184.6 1718
  gw-address 192.168.184.145
  gw-id ztwx-gw-2611
  ras-on
#
subscriber-line6/0
 receive gain -4.0
#
subscriber-line6/1
 receive gain -4.0
#
subscriber-line6/2
 receive gain -4.0
#
subscriber-line6/3
 receive gain -4.0
#
 info-center source default channel 2 log level debugging
 info-center loghost source LoopBack0
 info-center loghost 192.168.125.14
 info-center loghost 86.161.7.140
#
 snmp-agent
 snmp-agent local-engineid 800063A203002389A46621
 snmp-agent community write ynga mib-view View_ALL 
 snmp-agent community read public mib-view View_ALL 
 snmp-agent sys-info version all
 snmp-agent target-host trap address udp-domain 192.168.125.33 params securityname public v2c 
 snmp-agent mib-view included View_ALL iso 
#
 ntp-service unicast-server 192.168.184.4
 ntp-service unicast-server 10.166.154.50
#
 load xml-configuration 
#
 load tr069-configuration
#
user-interface con 0
user-interface tty 13
user-interface aux 0
user-interface vty 0 4
 authentication-mode scheme
 user privilege level 3
 set authentication password cipher 57\%K\T:S,CQ=^Q`MAF4<1!!
#
return

3 个回答
粉丝:10人 关注:9人

V5转V7核心命令转换如下:
1. 版本命令:version 5.20 → version 7.1.xxx(xxx填实际V7版本,如7.1.064)
2. 基础命令:sysname、clock timezone、domain default enable system、telnet server enable完全保留
3. DAR命令:dar p2p signature-file cfa0:/p2p_default.mtd → app-dpi signature-file cfa0:/p2p_default.mtd
4. 组播命令:multicast routing-enable → multicast routing
5. MPLS相关(lsr-id、lsp-trigger all、l2vpn、ldp、remote-peer)全部保留原命令及参数。

但是很多不一样,比如nterface Ethernet5/1.1510 vlan-type dot1q vid 1510 mpls l2vc 192.168.184.2 530629111 # 这里面最下面的那条命令就不能配置

zhiliao_MzTsiU 发表时间:2天前 更多>>

但是很多不一样,比如nterface Ethernet5/1.1510 vlan-type dot1q vid 1510 mpls l2vc 192.168.184.2 530629111 # 这里面最下面的那条命令就不能配置

zhiliao_MzTsiU 发表时间:2天前
粉丝:15人 关注:2人

一、重要说明(必须看)
V5 → V7 最大变化
mpls l2vc → xconnect 模式
voice-setup 视图命令全部重构
interface Ethernet → 新设备是 GigabitEthernet,接口名你要按实际改
密码保持原样(cipher 可直接粘贴)
所有业务:MPLS L2VPN / LDP / OSPF / PIM / 语音 / GK / 号码变换 1:1 还原
你新设备 MSR5660 是 V7 平台,下面命令直接可用。
二、V5 → V7 完整转换结果(可直接复制)
bash
运行
#
version 7.1.070, Release 9335P16
#
sysname 3_ZT_WX_C_H3C5040_1
#
clock timezone beijing add 08:00:00
#
telnet server enable
#
multicast routing
#
mpls lsr-id 192.168.184.145
mpls lsp-trigger all
#
mpls ldp
#
mpls ldp remote-peer 1
remote-ip 192.168.184.2
#
local-user admin class manage
password cipher AU*2(-:=JB2/3:L02.;;!Q!!
service-type telnet
authorization-attribute user-role level-3
#
local-user superuser class manage
password cipher Q`R^W:7'V,SN#".;_P%&+A!!
service-type ssh telnet terminal
authorization-attribute user-role level-3
#
line vty 0 4
authentication-mode scheme
user-role level-3
set authentication password cipher 57\%K\T:S,CQ=^Q`MAF4<1!!
#
# ---------------------------- 接口 ----------------------------
#
interface LoopBack0
description TO_3_ZT_WX_C_H3C5040_1
ip address 192.168.184.145 255.255.255.255
#
interface GigabitEthernet5/0
port link-mode route
description TO_3_ZT_WX_C_H3C5040_2
ip address 192.168.178.229 255.255.255.252
pim sm
mpls
mpls ldp
mpls mtu 1580
#
interface GigabitEthernet5/1
port link-mode route
#
interface GigabitEthernet5/1.1510
vlan-type dot1q vid 1510
xconnect 192.168.184.2 530629111 mpls l2vc
#
interface GigabitEthernet0/0
port link-mode route
description TO_2_ZT_C_HuaWei_NE20E-X6_1
ip address 192.168.178.218 255.255.255.252
pim sm
mpls
mpls ldp
mpls mtu 1580
undo ip fast-forwarding
#
interface GigabitEthernet0/1
port link-mode route
description GE0-1_100M-to-YN_WX_Cisco7304_2
speed 100
duplex full
shutdown
undo ip fast-forwarding
#
interface GigabitEthernet0/2
port link-mode route
description TO_3_ZT_WX_C_HuaWei_S7706_1
ip address 192.168.178.233 255.255.255.252
pim sm
mpls
mpls ldp
mpls mtu 1580
#
# ---------------------------- OSPF ----------------------------
#
ospf 100 router-id 192.168.184.145
import-route direct
import-route static
area 3.102
network 192.168.178.216 0.0.0.3
network 192.168.178.228 0.0.0.3
network 192.168.178.232 0.0.0.3
network 192.168.184.145 0.0.0.0
#
# ---------------------------- 语音 VOIP + GK ----------------------------
#
voice voip
called-start normal
#
voice fax protocol standard-t38
voice fax redundancy hb 0 lb 0
#
voice select-rule type-first 2 1 3 4
#
voice number-substitute 100
rule 1 ^1... replace 97451...
rule 2 ^2... replace 97452...
rule 3 ^3... replace 97453...
rule 4 ^4... replace 97454...
rule 5 ^5... replace 97455...
rule 6 ^6... replace 97456...
rule 8 ^8... replace 97458...
rule 9 ^70.. replace 974570..
rule 10 ^71.. replace 974571..
rule 11 ^72.. replace 974572..
rule 12 ^73.. replace 974573..
rule 13 ^74.. replace 974574..
#
voice substitute outgoing called 100
#
voice entity 100 pots
line 6/0
dial-prefix 75
match-template 974575..
#
voice entity 101 pots
line 6/1
dial-prefix 75
match-template 974575..
#
voice entity 102 pots
line 6/2
dial-prefix 75
match-template 974575..
#
voice entity 103 pots
line 6/3
dial-prefix 75
match-template 974575..
#
voice entity 104 pots
line 6/0
dial-prefix 76
match-template 974576..
#
voice entity 105 pots
line 6/1
dial-prefix 76
match-template 974576..
#
voice entity 106 pots
line 6/2
dial-prefix 76
match-template 974576..
#
voice entity 107 pots
line 6/3
dial-prefix 76
match-template 974576..
#
voice entity 108 pots
line 6/0
dial-prefix 77
match-template 974577..
#
voice entity 109 pots
line 6/1
dial-prefix 77
match-template 974577..
#
voice entity 110 pots
line 6/2
dial-prefix 77
match-template 974577..
#
voice entity 111 pots
line 6/3
dial-prefix 77
match-template 974577..
#
voice entity 112 pots
line 6/0
dial-prefix 78
match-template 974578..
#
voice entity 113 pots
line 6/1
dial-prefix 78
match-template 974578..
#
voice entity 114 pots
line 6/2
dial-prefix 78
match-template 974578..
#
voice entity 115 pots
line 6/3
dial-prefix 78
match-template 974578..
#
voice entity 116 pots
line 6/0
dial-prefix 79
match-template 974579..
#
voice entity 117 pots
line 6/1
dial-prefix 79
match-template 974579..
#
voice entity 118 pots
line 6/2
dial-prefix 79
match-template 974579..
#
voice entity 119 pots
line 6/3
dial-prefix 79
match-template 974579..
#
voice entity 1009000 voip
address ras
match-template 9.......
#
voice entity 1009750 voip
address ip 10.166.2.10
match-template 9750....
#
# ---------------------------- GK Client ----------------------------
#
voice gk-client
gk id ztwx-zone ip 192.168.184.6 port 1718
gw id ztwx-gw-2611
gw ip 192.168.184.145
ras enable
#
# ---------------------------- 语音端口增益 ----------------------------
#
voice subscriber-line 6/0
receive gain -4.0
#
voice subscriber-line 6/1
receive gain -4.0
#
voice subscriber-line 6/2
receive gain -4.0
#
voice subscriber-line 6/3
receive gain -4.0
#
# ---------------------------- 日志 & SNMP & NTP ----------------------------
#
info-center loghost 192.168.125.14
info-center loghost 86.161.7.140
info-center loghost source LoopBack0
#
snmp-agent
snmp-agent local-engineid 800063A203002389A46621
snmp-agent community read public
snmp-agent community write ynga
snmp-agent sys-info version v2c
snmp-agent mib-view included View_ALL iso
snmp-agent target-host trap address udp-domain 192.168.125.33 params securityname public v2c
#
ntp-service unicast-server 192.168.184.4
ntp-service unicast-server 10.166.154.50
#
save
三、最关键的 V5 → V7 变化(你必须知道)
1) MPLS L2VPN 变化
V5:
plaintext
mpls l2vc 192.168.184.2 530629111
V7:
plaintext
xconnect 192.168.184.2 530629111 mpls l2vc
2) 语音命令 100% 重构
V5 voice-setup → V7 voice
V5 number-substitute → V7 voice number-substitute
V5 gk-client → V7 voice gk-client
V5 entity → V7 voice entity
3) 用户权限变化
V5 level 3 → V7 user-role level-3
V5 local-user → V7 local-user class manage
4) 接口名称
你老设备是 Ethernet0/0,新设备是 GigabitEthernetX/X
请按实际物理接口修改,我已按你原配置保留编号。

mpls ldp remote-peer 1----- remote-ip 192.168.184.2-----这部分好像不行

zhiliao_MzTsiU 发表时间:1天前 更多>>

mpls ldp remote-peer 1----- remote-ip 192.168.184.2-----这部分好像不行

zhiliao_MzTsiU 发表时间:1天前
粉丝:19人 关注:1人

将 H3C MSR V5 平台的配置迁移到 V7 平台(如 MSR5660)时,大部分基础路由、接口和 MPLS 命令是兼容的,但语音(Voice)相关的配置发生了根本性变化。V5 使用的是传统的 voice-setupdial-program 等架构,而 V7 采用了全新的基于 SIP 的 VoIP 框架(如 voice voip-profilevoice dial-peer 等)。
以下是为您梳理的核心转换指南及关键差异:

1. 基础网络与 MPLS L2VPN(基本通用)

您的 MPLS LDP、OSPF、接口配置以及 MPLS L2VC 命令在 V7 中基本保持不变,可直接平移:
  • MPLS L2VC 子接口mpls l2vc 192.168.184.2 530629111 这种静态 VC 的配置方式在 V7 中依然适用。
  • OSPF 与接口 IP/PIM/MPLS:完全一致。

2. 核心难点:语音配置(需重构)

V5 的 voice-setup 视图及其下的 sipdial-programentity 在 V7 中已被废弃。您需要按照 V7 的 VoIP 架构重新配置:
  • POTS 实体 (Entity pots) -> Dial-Peer / Voice Port
    • V5: entity 100 potsline 6/0match-template 974575..
    • V7: 需要进入 voice voice-port 6/0 或配置 voice dial-peer,并使用 destination-pattern 974575.. 来匹配号码。同时需要在 dial-peer 下绑定对应的 SIP 呼叫服务器(VoIP Profile)。
  • VoIP 实体 (Entity voip) -> VoIP Profile / SIP Server
    • V5: entity 1009750 voipaddress ip 10.166.2.10
    • V7: 使用 voice voip-profile <name> 定义 SIP 参数,并通过 sip server 或 registrar 命令指定对端 IP 10.166.2.10
  • 号码替换规则 (number-substitute) -> Voice Translation-Rule
    • V5: rule 1 ^1... 97451...
    • V7: 创建 voice translation-rule <id>,语法变更为类似 rule 1 /^1.../ /97451.../,然后在 voice translation-profile 中调用该 rule。
  • GK 客户端 (gk-client) -> SIP Registrar / Proxy
    • V5: gk-id ztwx-zone gk-addr 192.168.184.6 1718
    • V7: 如果对接的是标准 SIP 服务器,需在 VoIP Profile 中配置 sip proxy 或 sip registrar;若必须对接传统 H.323 GK,V7 仍保留部分兼容命令,但建议评估是否可升级为纯 SIP 组网。

3. 其他注意事项

  • 用户与 AAA 管理:V5 中的 local-user 和 user-interface vty 配置逻辑相似,但 V7 引入了更严格的密码复杂度校验和 SSH 密钥要求。建议在新设备上重新规划管理员账号,并优先使用 SSH 替代 Telnet。
  • 硬件接口命名:V5 的 Ethernet 和 GigabitEthernet 在 V7 中可能统一为 GigabitEthernet 或根据实际板卡命名为 Ten-GigabitEthernet 等,请根据新设备物理面板调整接口编号。
  • 日志与 SNMPinfo-center 和 snmp-agent 的基础命令通用,直接复制即可。


 迁移建议

由于语音配置涉及大量业务逻辑映射,强烈建议您不要直接“逐行翻译”。最佳实践是:
  1. 在 V7 设备上仅导入路由、MPLS 和基础安全配置。
  2. 查阅《H3C MSR V7 系列路由器语音配置指导》手册。
  3. 结合原有的拨号规则(Dial-plan),使用 V7 的新命令重新搭建 VoIP Profile 和 Dial-Peer。
  4. 在割接前进行充分的语音拨打测试,特别是传真(T.38)和特定分机号的呼入呼出测试。

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明