淘先锋技术网

首页 1 2 3 4 5 6 7

正则表达式-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