GNS3とvMX(VCP/VFP)でVPLSを動かしてみるなど
Posted on 2016/09/19(Mon) 07:50 in technical
イマココ
以前、個人アカウントでvMX Trialのダウンロードができるようになった話 をして、
前回、GNS3でvMX(VCP/VFP)の動作確認が取れた ので、
どの程度の機能が使えるのか把握するべく、今度は logical-system と VPLS を動かしてみることにします。
状況設定
こんな感じのトポロジを作ります。
あー...絵を描こうかと思ったんですが、どうにも綺麗に描けず面倒になったので、言葉で書くので雰囲気で察してください。
- vMX_VCPとvMX_VFPがセットで1台のMXシリーズ筐体だと思ってください。以降は、それぞれvMX#1~#3と表記します。
- vMX#1, vMX#2はVPLSのエッジルータです。
- vMX#3はBGPのルートリフレクターです。
- IGPにはOSPFを使います。
- VPLSに必要な各プロセスはlogical-systemによって独立させます。
- SW3,SW4は、ubuntu1604-1,ubuntu1604-2をアクセスポートで収容し、vMX向けにTrunk設定をしています。(下図参照)
SW3,SW4は、VPLSサービスを提供する側の装置なのか、接続してくるユーザー側の装置なのか、はたまた伝送サービスなのか、あんまり考えてないので好きな状況設定でどうぞ。
初期設定
vMXの初期設定をします。
初めてJuniper製品に触る人にも気配りを忘れないボクです。(※初めての人はこんなページ見に来ない)
ログイン後、以下のようなコマンドを叩きます。試行錯誤しやすいようにファイルにも保存しておきます。:
cli configure set system root-authentication plain-text-password set system service ssh set interfaces fxp0 unit 0 family inet address 172.16.0.1/24 commit save default.cfg
通報
fxp0のアドレスは、今回特に出番はないです。 172.16.0.1/24 は適当に連番を振ったりすれば良いんじゃないですかね。
打ち込んだらこんな感じ。パスワードは要件を守って自由にどうぞ。:
FreeBSD/amd64 (Amnesiac) (ttyu0) login: root --- JUNOS 16.1R1.7 Kernel 64-bit JNPR-10.1-20160624.329953_builder_stable_10 root@:~ # cli root> configure Entering configuration mode [edit] root# set system root-authentication plain-text-password New password: Retype new password: [edit] root# set system services ssh [edit] root# set interfaces fxp0 unit 0 family inet address 172.16.0.1/24 [edit] root# commit Generating RSA key /etc/ssh/ssh_host_key Generating DSA key /etc/ssh/ssh_host_dsa_key Generating RSA2 key /etc/ssh/ssh_host_rsa_key Generating ECDSA key /etc/ssh/ssh_host_ecdsa_key Generating ED25519 key /etc/ssh/ssh_host_ed25519_key commit complete [edit] root# save default.cfg Wrote 31 lines of configuration to 'default.cfg'
コンフィグを元に戻したいときはこんな感じで使います。:
configure load override default.cfg commit
これで、この先コンフィグを変えて一から試したいときに便利になりました。
設定垂れ流し
特にコンフィグ解説とかするわけでもないので、こういうの付録にした方が良いんですかねー?
まぁ貼ります。みんな大好きset形式です。
大丈夫!ちゃんとハマりどころもあるから!
vMX#1
set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/4 flexible-vlan-tagging set interfaces ge-0/0/4 encapsulation vlan-vpls set logical-systems VPLS interfaces lo0 unit 200 family inet address 1.1.1.1/32 set logical-systems VPLS interfaces ge-0/0/0 unit 200 vlan-id 200 set logical-systems VPLS interfaces ge-0/0/0 unit 200 family inet address 10.20.0.1/24 set logical-systems VPLS interfaces ge-0/0/0 unit 200 family mpls set logical-systems VPLS interfaces ge-0/0/1 unit 200 vlan-id 200 set logical-systems VPLS interfaces ge-0/0/1 unit 200 family inet address 10.20.1.1/24 set logical-systems VPLS interfaces ge-0/0/1 unit 200 family mpls set logical-systems VPLS routing-options router-id 1.1.1.1 set logical-systems VPLS routing-options autonomous-system 65001 set logical-systems VPLS protocols ospf area 0 interface lo0.200 passive set logical-systems VPLS protocols ospf area 0 interface ge-0/0/0.200 set logical-systems VPLS protocols ospf area 0 interface ge-0/0/1.200 set logical-systems VPLS protocols bgp group vpls-peering type internal set logical-systems VPLS protocols bgp group vpls-peering local-address 1.1.1.1 set logical-systems VPLS protocols bgp group vpls-peering type internal family l2vpn signaling set logical-systems VPLS protocols bgp group vpls-peering neighbor 3.3.3.3 set logical-systems VPLS protocols mpls interface all set logical-systems VPLS interfaces ge-0/0/4 unit 2001 encapsulation vlan-vpls set logical-systems VPLS interfaces ge-0/0/4 unit 2001 vlan-id 2001 set logical-systems VPLS interfaces ge-0/0/4 unit 2001 family vpls set logical-systems VPLS routing-instances vpls2001 instance-type vpls set logical-systems VPLS routing-instances vpls2001 interface ge-0/0/4.2001 set logical-systems VPLS routing-instances vpls2001 route-distinguisher 65001:202001 set logical-systems VPLS routing-instances vpls2001 vrf-target target:65001:202001 set logical-systems VPLS routing-instances vpls2001 protocols vpls site-range 10 set logical-systems VPLS routing-instances vpls2001 protocols vpls no-tunnel-services set logical-systems VPLS routing-instances vpls2001 protocols vpls site vpls-site site-identifier 1 set logical-systems VPLS protocols mpls label-switched-path pe1-to-pe2 from 1.1.1.1 to 2.2.2.2 set logical-systems VPLS protocols rsvp interface all set logical-systems VPLS protocols ospf traffic-engineering
vMX#2
set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/4 flexible-vlan-tagging set interfaces ge-0/0/4 encapsulation vlan-vpls set logical-systems VPLS interfaces lo0 unit 200 family inet address 2.2.2.2/32 set logical-systems VPLS interfaces ge-0/0/0 unit 200 vlan-id 200 set logical-systems VPLS interfaces ge-0/0/0 unit 200 family inet address 10.20.0.2/24 set logical-systems VPLS interfaces ge-0/0/0 unit 200 family mpls set logical-systems VPLS interfaces ge-0/0/1 unit 200 vlan-id 200 set logical-systems VPLS interfaces ge-0/0/1 unit 200 family inet address 10.20.2.2/24 set logical-systems VPLS interfaces ge-0/0/1 unit 200 family mpls set logical-systems VPLS routing-options router-id 2.2.2.2 set logical-systems VPLS routing-options autonomous-system 65001 set logical-systems VPLS protocols ospf area 0 interface lo0.200 passive set logical-systems VPLS protocols ospf area 0 interface ge-0/0/0.200 set logical-systems VPLS protocols ospf area 0 interface ge-0/0/1.200 set logical-systems VPLS protocols bgp group vpls-peering type internal set logical-systems VPLS protocols bgp group vpls-peering local-address 2.2.2.2 set logical-systems VPLS protocols bgp group vpls-peering type internal family l2vpn signaling set logical-systems VPLS protocols bgp group vpls-peering neighbor 3.3.3.3 set logical-systems VPLS protocols mpls interface all set logical-systems VPLS interfaces ge-0/0/4 unit 2001 encapsulation vlan-vpls set logical-systems VPLS interfaces ge-0/0/4 unit 2001 vlan-id 2001 set logical-systems VPLS interfaces ge-0/0/4 unit 2001 family vpls set logical-systems VPLS routing-instances vpls2001 instance-type vpls set logical-systems VPLS routing-instances vpls2001 interface ge-0/0/4.2001 set logical-systems VPLS routing-instances vpls2001 route-distinguisher 65001:202001 set logical-systems VPLS routing-instances vpls2001 vrf-target target:65001:202001 set logical-systems VPLS routing-instances vpls2001 protocols vpls site-range 10 set logical-systems VPLS routing-instances vpls2001 protocols vpls no-tunnel-services set logical-systems VPLS routing-instances vpls2001 protocols vpls site vpls-site site-identifier 2 set logical-systems VPLS protocols mpls label-switched-path pe1-to-pe2 from 2.2.2.2 to 1.1.1.1 set logical-systems VPLS protocols rsvp interface all set logical-systems VPLS protocols ospf traffic-engineering
vMX#3
set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/1 vlan-tagging set logical-systems VPLS interfaces lo0 unit 200 family inet address 3.3.3.3/32 set logical-systems VPLS interfaces ge-0/0/0 unit 200 vlan-id 200 set logical-systems VPLS interfaces ge-0/0/0 unit 200 family inet address 10.20.1.3/24 set logical-systems VPLS interfaces ge-0/0/1 unit 200 vlan-id 200 set logical-systems VPLS interfaces ge-0/0/1 unit 200 family inet address 10.20.2.3/24 set logical-systems VPLS routing-options router-id 3.3.3.3 set logical-systems VPLS routing-options autonomous-system 65001 set logical-systems VPLS protocols ospf area 0 interface lo0.200 passive set logical-systems VPLS protocols ospf area 0 interface ge-0/0/0.200 set logical-systems VPLS protocols ospf area 0 interface ge-0/0/1.200 set logical-systems VPLS protocols bgp group rr type internal set logical-systems VPLS protocols bgp group rr local-address 3.3.3.3 set logical-systems VPLS protocols bgp group rr type internal family l2vpn signaling set logical-systems VPLS protocols bgp group rr cluster 3.3.3.3 set logical-systems VPLS protocols bgp group rr neighbor 1.1.1.1 set logical-systems VPLS protocols bgp group rr neighbor 2.2.2.2
ubuntu1604-1
sudo ip link set up ens4 sudo ip addr add 192.168.10.5/24 dev ens4
ubuntu1604-2
sudo ip link set up ens4 sudo ip addr add 192.168.10.6/24 dev ens4
動作確認(初回)
よーし、設定が終わったので、確認サボってpingを打つぞい。
ubuntu1604-1
$ ping 192.168.10.6 PING 192.168.10.6 (192.168.10.6) 56(84) bytes of data. From 192.168.10.6 icmp_seq=1 Destination Host Unreachable From 192.168.10.6 icmp_seq=2 Destination Host Unreachable From 192.168.10.6 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.6 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5017ms pipe 3
(´・ω・`)
状況確認
なんでかなー、ってことで装置の状態を見ていく。
vMX#3
まずルーティングテーブルを見る。(JuniperはルーティングテーブルにVPLSのBGPテーブルも乗るのだ):
root> show route logical-system VPLS hidden inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) bgp.l2vpn.0: 2 destinations, 2 routes (0 active, 0 holddown, 2 hidden) + = Active Route, - = Last Active, * = Both 65001:202001:1:1/96 [BGP/170] 00:02:04, localpref 100, from 1.1.1.1 AS path: I, validation-state: unverified Unusable 65001:202001:2:1/96 [BGP/170] 00:02:13, localpref 100, from 2.2.2.2 AS path: I, validation-state: unverified Unusable
ふむ。経路が2個無効になっているね。
より詳細に見てみよう。:
root> show route logical-system VPLS hidden extensive | no-more inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) bgp.l2vpn.0: 2 destinations, 2 routes (0 active, 0 holddown, 2 hidden) 65001:202001:1:1/96 (1 entry, 0 announced) BGP Preference: 170/-101 Route Distinguisher: 65001:202001 Next hop type: Unusable, Next hop index: 0 Address: 0x9d663a4 Next-hop reference count: 2 State: <Hidden Int Ext> Local AS: 65001 Peer AS: 65001 Age: 2:52 Validation State: unverified Task: BGP_65001.1.1.1.1 AS path: I Communities: target:65001:202001 Layer2-info: encaps: VPLS, control flags:[0x0] , mtu: 0, site preference: 100 Accepted Label-base: 262145, range: 8, offset: 1 Localpref: 100 Router ID: 1.1.1.1 Indirect next hops: 1 Protocol next hop: 1.1.1.1 Indirect next hop: 0x0 - INH Session ID: 0x0 65001:202001:2:1/96 (1 entry, 0 announced) BGP Preference: 170/-101 Route Distinguisher: 65001:202001 Next hop type: Unusable, Next hop index: 0 Address: 0x9d663a4 Next-hop reference count: 2 State: <Hidden Int Ext> Local AS: 65001 Peer AS: 65001 Age: 3:01 Validation State: unverified Task: BGP_65001.2.2.2.2 AS path: I Communities: target:65001:202001 Layer2-info: encaps: VPLS, control flags:[0x0] , mtu: 0, site preference: 100 Accepted Label-base: 262145, range: 8, offset: 1 Localpref: 100 Router ID: 2.2.2.2 Indirect next hops: 1 Protocol next hop: 2.2.2.2 Indirect next hop: 0x0 - INH Session ID: 0x0
見えている経路は想定したものだけど、Next-hopが有効になっていないようだ。
つまり解決に失敗しているということだね?:
root> show route resolution unresolved logical-system VPLS Tree Index 1 65001:202001:1:1/320 Protocol Nexthop: 1.1.1.1 Indirect nexthop: 0x0 - INH Session ID: 0x0 Path forwarding nexthops link: 0x0 Path inh link: 0x0 65001:202001:2:1/320 Protocol Nexthop: 2.2.2.2 Indirect nexthop: 0x0 - INH Session ID: 0x0 Path forwarding nexthops link: 0x0 Path inh link: 0x0
ふーむ、ふむふむ。
これはVPLSインスタンスを持たないBGPルートリフレクターが、自身の経路ルックアップ対象テーブルが見つけられない経路を無効にしてしまっているからだね。(説明放棄)
対応
vMX#3に設定を追加するよ。:
configure set logical-systems VPLS routing-options resolution rib bgp.l2vpn.0 resolution-ribs inet.0 commit
ふぅ、やれやれ。
動作確認(2回目)
ubuntu1604-1
よーし、設定が終わったので、確認サボってpingを打つぞい。(こりない):
$ ping -c 5 192.168.10.6 PING 192.168.10.6 (192.168.10.6) 56(84) bytes of data. 64 bytes from 192.168.10.6: icmp_seq=1 ttl=64 time=3.24 ms 64 bytes from 192.168.10.6: icmp_seq=2 ttl=64 time=1.64 ms 64 bytes from 192.168.10.6: icmp_seq=3 ttl=64 time=1.54 ms 64 bytes from 192.168.10.6: icmp_seq=4 ttl=64 time=1.77 ms 64 bytes from 192.168.10.6: icmp_seq=5 ttl=64 time=1.46 ms --- 192.168.10.6 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 1.467/1.935/3.244/0.662 ms $ arp -n -i ens4 Address HWtype HWaddress Flags Mask Iface 192.168.10.6 ether 00:65:58:7f:16:01 C ens4
やったー、pingが通ったよー。
ここで学習したMACアドレスは、VPLS側にも当然あるはず。
vMX#1
ありました。:
root> show vpls mac-table logical-system VPLS | no-more MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC) Logical system : VPLS Routing instance : vpls2001 Bridging domain : __vpls2001__, VLAN : NA MAC MAC Logical NH RTR addresssss flags interface Index ID 00:65:58:45:7a:01 D ge-0/0/4.2001 00:65:58:7f:16:01 D lsi.17826048
おしまい
というわけで、vMX(VCP/VFP)でVPLSを動かしてみるサンプルでした。
ちゃんとlogical-systemも動いて、十分に機能することが確認できました。
折角ダウンロード権限をもらったので、この程度は公開しておこうかなと思いまして。
それにしても、この構成が組めるということは、もしかしてアレも...と思った皆様、どうぞお試しください。
それではお疲れ様でした。
参考出力
以下参考出力です。
vMX#1
root> show interfaces terse | no-more Interface Admin Link Proto Local Remote ge-0/0/0 up up ge-0/0/0.200 up up inet 10.20.0.1/24 mpls multiservice ge-0/0/0.32767 up up multiservice lc-0/0/0 up up lc-0/0/0.32769 up up vpls pfe-0/0/0 up up pfe-0/0/0.16383 up up inet inet6 pfh-0/0/0 up up pfh-0/0/0.16383 up up inet pfh-0/0/0.16384 up up inet ge-0/0/1 up up ge-0/0/1.200 up up inet 10.20.1.1/24 mpls multiservice ge-0/0/1.32767 up up multiservice ge-0/0/2 up up ge-0/0/3 up up ge-0/0/4 up up ge-0/0/4.2001 up up vpls ge-0/0/4.32767 up up multiservice ge-0/0/5 up up ge-0/0/6 up down ge-0/0/7 up down ge-0/0/8 up down ge-0/0/9 up down cbp0 up up demux0 up up dsc up up em1 up up em1.0 up up inet 10.0.0.4/8 128.0.0.1/2 128.0.0.4/2 inet6 fe80::265:58ff:fe42:8801/64 fec0::a:0:0:4/64 tnp 0x4 esi up up fxp0 up up fxp0.0 up up inet 172.16.0.1/24 gre up up ipip up up irb up up jsrv up up jsrv.1 up up inet 128.0.0.127/2 lo0 up up lo0.200 up up inet 1.1.1.1 --> 0/0 lo0.16384 up up inet 127.0.0.1 --> 0/0 lo0.16385 up up inet lsi up up lsi.17826048 up up vpls mtun up up pimd up up pime up up pip0 up up pp0 up up rbeb up up tap up up vtep up up vtnet2 up up vtnet3 up up root> show ospf neighbor logical-system VPLS | no-more Address Interface State ID Pri Dead 10.20.0.2 ge-0/0/0.200 Full 2.2.2.2 128 38 10.20.1.3 ge-0/0/1.200 Full 3.3.3.3 128 32 root> show bgp summary logical-system VPLS | no-more Groups: 1 Peers: 1 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l2vpn.0 1 1 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 3.3.3.3 65001 184 181 0 0 1:20:40 Establ bgp.l2vpn.0: 1/1/1/0 vpls2001.l2vpn.0: 1/1/1/0 root> show route logical-system VPLS | no-more inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[Direct/0] 01:22:54 > via lo0.200 2.2.2.2/32 *[OSPF/10] 01:21:43, metric 1 > to 10.20.0.2 via ge-0/0/0.200 3.3.3.3/32 *[OSPF/10] 01:21:03, metric 1 > to 10.20.1.3 via ge-0/0/1.200 10.20.0.0/24 *[Direct/0] 01:22:54 > via ge-0/0/0.200 10.20.0.1/32 *[Local/0] 01:22:54 Local via ge-0/0/0.200 10.20.1.0/24 *[Direct/0] 01:22:54 > via ge-0/0/1.200 10.20.1.1/32 *[Local/0] 01:22:54 Local via ge-0/0/1.200 10.20.2.0/24 *[OSPF/10] 01:21:03, metric 2 to 10.20.0.2 via ge-0/0/0.200 > to 10.20.1.3 via ge-0/0/1.200 224.0.0.5/32 *[OSPF/10] 01:22:55, metric 1 MultiRecv inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2.2.2.2/32 *[RSVP/7/1] 01:21:26, metric 1 > to 10.20.0.2 via ge-0/0/0.200, label-switched-path pe1-to-pe2 mpls.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0 *[MPLS/0] 01:22:54, metric 1 Receive 1 *[MPLS/0] 01:22:54, metric 1 Receive 2 *[MPLS/0] 01:22:54, metric 1 Receive 13 *[MPLS/0] 01:22:54, metric 1 Receive 262146 *[VPLS/7] 00:06:54 > via lsi.17826048 (master), Pop lsi.17826048 *[VPLS/7] 00:06:54, metric2 1 > to 10.20.0.2 via ge-0/0/0.200, label-switched-path pe1-to-pe2 bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 65001:202001:2:1/96 *[BGP/170] 00:06:54, localpref 100, from 3.3.3.3 AS path: I, validation-state: unverified > to 10.20.0.2 via ge-0/0/0.200, label-switched-path pe1-to-pe2 vpls2001.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 65001:202001:1:1/96 *[L2VPN/170/-101] 01:22:54, metric2 1 Indirect 65001:202001:2:1/96 *[BGP/170] 00:06:54, localpref 100, from 3.3.3.3 AS path: I, validation-state: unverified > to 10.20.0.2 via ge-0/0/0.200, label-switched-path pe1-to-pe2 root> show vpls connections logical-system VPLS | no-more Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -> -- only outbound connection is up CN -- circuit not provisioned <- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not available BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy RS -- remote site standby SN -- Static Neighbor LB -- Local site not best-site RB -- Remote site not best-site VM -- VLAN ID mismatch HS -- Hot-standby Connection Legend for interface status Up -- operational Dn -- down Instance: vpls2001 Edge protection: Not-Primary Local site: vpls-site (1) connection-site Type St Time last up # Up trans 2 rmt Up Sep 18 22:25:43 2016 1 Remote PE: 2.2.2.2, Negotiated control-word: No Incoming label: 262146, Outgoing label: 262145 Local interface: lsi.17826048, Status: Up, Encapsulation: VPLS Description: Intf - vpls vpls2001 local site 1 remote site 2 Flow Label Transmit: No, Flow Label Receive: No root> show vpls mac-table logical-system VPLS | no-more MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC) Logical system : VPLS Routing instance : vpls2001 Bridging domain : __vpls2001__, VLAN : NA MAC MAC Logical NH RTR addresssss flags interface Index ID 00:65:58:45:7a:01 D ge-0/0/4.2001 00:65:58:7f:16:01 D lsi.17826048 root> show mpls lsp logical-system VPLS | no-more Ingress LSP: 1 sessions To From State Rt P ActivePath LSPname 2.2.2.2 1.1.1.1 Up 0 * pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Egress LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 1.1.1.1 2.2.2.2 Up 0 1 FF 3 - pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 root> show rsvp session logical-system VPLS Ingress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 2.2.2.2 1.1.1.1 Up 0 1 FF - 3 pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Egress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 1.1.1.1 2.2.2.2 Up 0 1 FF 3 - pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
vMX#2
root> show interfaces terse | no-more Interface Admin Link Proto Local Remote ge-0/0/0 up up ge-0/0/0.200 up up inet 10.20.0.2/24 mpls multiservice ge-0/0/0.32767 up up multiservice lc-0/0/0 up up lc-0/0/0.32769 up up vpls pfe-0/0/0 up up pfe-0/0/0.16383 up up inet inet6 pfh-0/0/0 up up pfh-0/0/0.16383 up up inet pfh-0/0/0.16384 up up inet ge-0/0/1 up up ge-0/0/1.200 up up inet 10.20.2.2/24 mpls multiservice ge-0/0/1.32767 up up multiservice ge-0/0/2 up up ge-0/0/3 up up ge-0/0/4 up up ge-0/0/4.2001 up up vpls ge-0/0/4.32767 up up multiservice ge-0/0/5 up up ge-0/0/6 up down ge-0/0/7 up down ge-0/0/8 up down ge-0/0/9 up down cbp0 up up demux0 up up dsc up up em1 up up em1.0 up up inet 10.0.0.4/8 128.0.0.1/2 128.0.0.4/2 inet6 fe80::265:58ff:fe60:6f01/64 fec0::a:0:0:4/64 tnp 0x4 esi up up fxp0 up up fxp0.0 up up inet 172.16.0.2/24 gre up up ipip up up irb up up jsrv up up jsrv.1 up up inet 128.0.0.127/2 lo0 up up lo0.200 up up inet 2.2.2.2 --> 0/0 lo0.16384 up up inet 127.0.0.1 --> 0/0 lo0.16385 up up inet lsi up up lsi.17826048 up up vpls mtun up up pimd up up pime up up pip0 up up pp0 up up rbeb up up tap up up vtep up up vtnet2 up up vtnet3 up up root> show ospf neighbor logical-system VPLS | no-more Address Interface State ID Pri Dead 10.20.0.1 ge-0/0/0.200 Full 1.1.1.1 128 38 10.20.2.3 ge-0/0/1.200 Full 3.3.3.3 128 38 root> show bgp summary logical-system VPLS | no-more Groups: 1 Peers: 1 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l2vpn.0 1 1 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 3.3.3.3 65001 200 197 0 0 1:27:46 Establ bgp.l2vpn.0: 1/1/1/0 vpls2001.l2vpn.0: 1/1/1/0 root> show route logical-system VPLS | no-more inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[OSPF/10] 01:28:41, metric 1 > to 10.20.0.1 via ge-0/0/0.200 2.2.2.2/32 *[Direct/0] 01:29:01 > via lo0.200 3.3.3.3/32 *[OSPF/10] 01:28:05, metric 1 > to 10.20.2.3 via ge-0/0/1.200 10.20.0.0/24 *[Direct/0] 01:29:01 > via ge-0/0/0.200 10.20.0.2/32 *[Local/0] 01:29:01 Local via ge-0/0/0.200 10.20.1.0/24 *[OSPF/10] 01:28:05, metric 2 to 10.20.0.1 via ge-0/0/0.200 > to 10.20.2.3 via ge-0/0/1.200 10.20.2.0/24 *[Direct/0] 01:29:01 > via ge-0/0/1.200 10.20.2.2/32 *[Local/0] 01:29:01 Local via ge-0/0/1.200 224.0.0.5/32 *[OSPF/10] 01:29:01, metric 1 MultiRecv inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[RSVP/7/1] 01:28:32, metric 1 > to 10.20.0.1 via ge-0/0/0.200, label-switched-path pe1-to-pe2 mpls.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0 *[MPLS/0] 01:29:01, metric 1 Receive 1 *[MPLS/0] 01:29:01, metric 1 Receive 2 *[MPLS/0] 01:29:01, metric 1 Receive 13 *[MPLS/0] 01:29:01, metric 1 Receive 262145 *[VPLS/7] 00:13:53 > via lsi.17826048 (master), Pop lsi.17826048 *[VPLS/7] 00:13:53, metric2 1 > to 10.20.0.1 via ge-0/0/0.200, label-switched-path pe1-to-pe2 bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 65001:202001:1:1/96 *[BGP/170] 00:13:53, localpref 100, from 3.3.3.3 AS path: I, validation-state: unverified > to 10.20.0.1 via ge-0/0/0.200, label-switched-path pe1-to-pe2 vpls2001.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 65001:202001:1:1/96 *[BGP/170] 00:13:53, localpref 100, from 3.3.3.3 AS path: I, validation-state: unverified > to 10.20.0.1 via ge-0/0/0.200, label-switched-path pe1-to-pe2 65001:202001:2:1/96 *[L2VPN/170/-101] 01:29:00, metric2 1 Indirect root> show vpls connections logical-system VPLS | no-more Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -> -- only outbound connection is up CN -- circuit not provisioned <- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not available BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy RS -- remote site standby SN -- Static Neighbor LB -- Local site not best-site RB -- Remote site not best-site VM -- VLAN ID mismatch HS -- Hot-standby Connection Legend for interface status Up -- operational Dn -- down Instance: vpls2001 Edge protection: Not-Primary Local site: vpls-site (2) connection-site Type St Time last up # Up trans 1 rmt Up Sep 18 22:25:43 2016 1 Remote PE: 1.1.1.1, Negotiated control-word: No Incoming label: 262145, Outgoing label: 262146 Local interface: lsi.17826048, Status: Up, Encapsulation: VPLS Description: Intf - vpls vpls2001 local site 2 remote site 1 Flow Label Transmit: No, Flow Label Receive: No root> show vpls mac-table logical-system VPLS | no-more MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC) Logical system : VPLS Routing instance : vpls2001 Bridging domain : __vpls2001__, VLAN : NA MAC MAC Logical NH RTR addresssss flags interface Index ID 00:65:58:45:7a:01 D lsi.17826048 00:65:58:7f:16:01 D ge-0/0/4.2001 root> show mpls lsp logical-system VPLS | no-more Ingress LSP: 1 sessions To From State Rt P ActivePath LSPname 1.1.1.1 2.2.2.2 Up 0 * pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Egress LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 2.2.2.2 1.1.1.1 Up 0 1 FF 3 - pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 root> show rsvp session logical-system VPLS Ingress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 1.1.1.1 2.2.2.2 Up 0 1 FF - 3 pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Egress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 2.2.2.2 1.1.1.1 Up 0 1 FF 3 - pe1-to-pe2 Total 1 displayed, Up 1, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
vMX#3
root> show interfaces terse | no-more Interface Admin Link Proto Local Remote ge-0/0/0 up up ge-0/0/0.200 up up inet 10.20.1.3/24 multiservice ge-0/0/0.32767 up up multiservice lc-0/0/0 up up lc-0/0/0.32769 up up vpls pfe-0/0/0 up up pfe-0/0/0.16383 up up inet inet6 pfh-0/0/0 up up pfh-0/0/0.16383 up up inet pfh-0/0/0.16384 up up inet ge-0/0/1 up up ge-0/0/1.200 up up inet 10.20.2.3/24 multiservice ge-0/0/1.32767 up up multiservice ge-0/0/2 up up ge-0/0/3 up up ge-0/0/4 up up ge-0/0/5 up up ge-0/0/6 up down ge-0/0/7 up down ge-0/0/8 up down ge-0/0/9 up down cbp0 up up demux0 up up dsc up up em1 up up em1.0 up up inet 10.0.0.4/8 128.0.0.1/2 128.0.0.4/2 inet6 fe80::265:58ff:feaa:ad01/64 fec0::a:0:0:4/64 tnp 0x4 esi up up fxp0 up up fxp0.0 up up inet 172.16.0.3/24 gre up up ipip up up irb up up jsrv up up jsrv.1 up up inet 128.0.0.127/2 lo0 up up lo0.200 up up inet 3.3.3.3 --> 0/0 lo0.16384 up up inet 127.0.0.1 --> 0/0 lo0.16385 up up inet lsi up up mtun up up pimd up up pime up up pip0 up up pp0 up up rbeb up up tap up up vtep up up vtnet2 up up vtnet3 up up root> show ospf neighbor logical-system VPLS | no-more Address Interface State ID Pri Dead 10.20.1.1 ge-0/0/0.200 Full 1.1.1.1 128 34 10.20.2.2 ge-0/0/1.200 Full 2.2.2.2 128 32 root> show bgp summary logical-system VPLS | no-more Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l2vpn.0 2 2 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 1.1.1.1 65001 200 201 0 0 1:28:56 Establ bgp.l2vpn.0: 1/1/1/0 2.2.2.2 65001 201 202 0 0 1:29:05 Establ bgp.l2vpn.0: 1/1/1/0 root> show route logical-system VPLS | no-more inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[OSPF/10] 01:29:17, metric 1 > to 10.20.1.1 via ge-0/0/0.200 2.2.2.2/32 *[OSPF/10] 01:29:22, metric 1 > to 10.20.2.2 via ge-0/0/1.200 3.3.3.3/32 *[Direct/0] 01:29:37 > via lo0.200 10.20.0.0/24 *[OSPF/10] 01:29:17, metric 2 to 10.20.1.1 via ge-0/0/0.200 > to 10.20.2.2 via ge-0/0/1.200 10.20.1.0/24 *[Direct/0] 01:29:37 > via ge-0/0/0.200 10.20.1.3/32 *[Local/0] 01:29:37 Local via ge-0/0/0.200 10.20.2.0/24 *[Direct/0] 01:29:37 > via ge-0/0/1.200 10.20.2.3/32 *[Local/0] 01:29:37 Local via ge-0/0/1.200 224.0.0.5/32 *[OSPF/10] 01:29:37, metric 1 MultiRecv bgp.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 65001:202001:1:1/96 *[BGP/170] 00:15:10, localpref 100, from 1.1.1.1 AS path: I, validation-state: unverified > to 10.20.1.1 via ge-0/0/0.200 65001:202001:2:1/96 *[BGP/170] 00:15:10, localpref 100, from 2.2.2.2 AS path: I, validation-state: unverified > to 10.20.2.2 via ge-0/0/1.200 root> show vpls connections logical-system VPLS | no-more root> show vpls mac-table logical-system VPLS | no-more root> show mpls lsp logical-system VPLS | no-more MPLS not configured root> show rsvp session logical-system VPLS RSVP not configured root> show route logical-system VPLS table bgp.l2vpn.0 extensive | no-more bgp.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) 65001:202001:1:1/96 (1 entry, 1 announced) TSI: Page 0 idx 0, (group rr type Internal) Type 1 val 0xcf22624 (adv_entry) Advertised metrics: Nexthop: 1.1.1.1 Localpref: 100 AS path: [65001] I Communities: target:65001:202001 Layer2-info: encaps: VPLS, control flags:[0x0] , mtu: 0, site preference: 100 Cluster ID: 3.3.3.3 Originator ID: 1.1.1.1 Advertise: 00000002 Path 65001:202001:1:1 from 1.1.1.1 Vector len 4. Val: 0 *BGP Preference: 170/-101 Route Distinguisher: 65001:202001 Next hop type: Indirect, Next hop index: 0 Address: 0xcf01050 Next-hop reference count: 1 Source: 1.1.1.1 Protocol next hop: 1.1.1.1 Indirect next hop: 0x2 no-forward INH Session ID: 0x0 State: <Active Int Ext> Local AS: 65001 Peer AS: 65001 Age: 17:26 Metric2: 1 Validation State: unverified Task: BGP_65001.1.1.1.1 Announcement bits (1): 0-BGP_RT_Background AS path: I Communities: target:65001:202001 Layer2-info: encaps: VPLS, control flags:[0x0] , mtu: 0, site preference: 100 Accepted Label-base: 262145, range: 8, offset: 1 Localpref: 100 Router ID: 1.1.1.1 Indirect next hops: 1 Protocol next hop: 1.1.1.1 Metric: 1 Indirect next hop: 0x2 no-forward INH Session ID: 0x0 Indirect path forwarding next hops: 1 Next hop type: Router Next hop: 10.20.1.1 via ge-0/0/0.200 Session Id: 0x143 1.1.1.1/32 Originating RIB: inet.0 Metric: 1 Node path count: 1 Forwarding nexthops: 1 Nexthop: 10.20.1.1 via ge-0/0/0.200 65001:202001:2:1/96 (1 entry, 1 announced) TSI: Page 0 idx 0, (group rr type Internal) Type 1 val 0xcf22544 (adv_entry) Advertised metrics: Nexthop: 2.2.2.2 Localpref: 100 AS path: [65001] I Communities: target:65001:202001 Layer2-info: encaps: VPLS, control flags:[0x0] , mtu: 0, site preference: 100 Cluster ID: 3.3.3.3 Originator ID: 2.2.2.2 Advertise: 00000001 Path 65001:202001:2:1 from 2.2.2.2 Vector len 4. Val: 0 *BGP Preference: 170/-101 Route Distinguisher: 65001:202001 Next hop type: Indirect, Next hop index: 0 Address: 0xcf01290 Next-hop reference count: 1 Source: 2.2.2.2 Protocol next hop: 2.2.2.2 Indirect next hop: 0x2 no-forward INH Session ID: 0x0 State: <Active Int Ext> Local AS: 65001 Peer AS: 65001 Age: 17:26 Metric2: 1 Validation State: unverified Task: BGP_65001.2.2.2.2 Announcement bits (1): 0-BGP_RT_Background AS path: I Communities: target:65001:202001 Layer2-info: encaps: VPLS, control flags:[0x0] , mtu: 0, site preference: 100 Accepted Label-base: 262145, range: 8, offset: 1 Localpref: 100 Router ID: 2.2.2.2 Indirect next hops: 1 Protocol next hop: 2.2.2.2 Metric: 1 Indirect next hop: 0x2 no-forward INH Session ID: 0x0 Indirect path forwarding next hops: 1 Next hop type: Router Next hop: 10.20.2.2 via ge-0/0/1.200 Session Id: 0x142 2.2.2.2/32 Originating RIB: inet.0 Metric: 1 Node path count: 1 Forwarding nexthops: 1 Nexthop: 10.20.2.2 via ge-0/0/1.200