正则表达式翻译asr9000

本文档提供了ASR9K路由器中特定正则表达式的替换步骤,涉及bridge-domain、split-horizon、xconnect、service instance和interface的配置更新,以优化网络设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

正则表达式-ASR9K
bridge-domain ^([0-9]+^) split-horizon
替换
 bridge group ^1
 bridge-domain ^1
  interface Bundle-Ether104.^1
  split-horizon group
xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls
替换
p2p **
  interface Bundle-Ether104.2591
  neighbor ipv4 ^1 pw-id ^2
  pw-class l2vpn

 service instance ^([0-9]+^) ethernet
 description([0-9a-zA-Z-. ]+^)
 encapsulation dot1q ^([0-9]+^)
 rewrite ingress tag pop 1 symmetric
 xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls

-------------------------------------------------------------------
interface Bundle-Ether106.^([0-9]+^)
 description^([0-9a-zA-Z-. ]+^)
 encapsulation dot1q ^([0-9]+^)
 xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls
替换
interface Bundle-Ether106.^1 l2transport
 description^2
 encapsulation dot1q ^3
 p2p ^1
 interface Bundle-Ether106.^1
  neighbor ipv4 ^4 pw-id ^5
  pw-class l2vpn
-----------------------------------------------------------
 service instance ^([0-9]+^) ethernet
 description^([0-9a-zA-Z-. ]+^)
 encapsulation dot1q ^([0-9]+^)
 rewrite ingress tag pop 1 symmetric
 bridge-domain ^([0-9]+^) split-horizon
替换
 service instance ^([0-9]+^) ethernet
 description^([0-9a-zA-Z-. ]+^)
 encapsulation dot1q ^([0-9]+^)
 rewrite ingress tag pop 1 symmetric
 bridge-domain ^([0-9]+^) split-horizon
-------------------------------------------------------
interface GigabitEthernet0/0/0/^([0-9. ]+^)
 encapsulation dot1Q ^([0-9]+^)
 xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls
更换
interface GigabitEthernet0/0/0/^1 l2transport
 encapsulation dot1q ^2
 p2p ^2
 interface GigabitEthernet0/0/0/^1
  neighbor ipv4 ^3 pw-id ^4
  pw-class l2vpn

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值