Juniper SE800配置
Juniper/Redback martini L2VPN config sampleOlive本地路由器- P0-P1-P2-P3-SE800L2-Circuit 配置在本地的路由器上P0,P1,P2,P3配置在Logical Router中SE800是redback 的BRAS,作为L2-circuilt的另一端在Olive本地路由器与SE800之间建立L2-Circuitroot@olive# run show l2circuit connections Layer-2 Circuit Connectionsegend for connection status (St) EI -- encapsulation invalid NP -- interface h/w not present MM -- mtu mismatch Dn -- down EM -- encapsulation mismatch VC-Dn -- Virtual circuit Down CM -- control-word mismatch Up -- operational VM -- vlan id mismatch CF -- Call admission control failureOL -- no outgoing label XX -- unknownNC -- intf encaps not CCC/TCCCB -- rcvd cell-bundle size badLegend for interface status Up -- operational Dn -- down Neighbor: 6.6.6.6 Interface Type St Time last up # Up trans fxp2.0(vc 100) rmt Up Jun 7 10:09:19 2005 1 Local interface: fxp2.0, Status: Up, Encapsulation: VLAN Remote PE: 6.6.6.6, Negotiated control-word: No Incoming label: 100000, Outgoing label: 131072[edit]root@olive# [local]SE1#show l2vpn xc detail LDP L2VPN Circuit 11/1 vlan-id 100L2 State : Up Peer : 5.5.5.5 VC ID : 100 XC state : Up Local Label : 131072 Access Circuit : 11/1:1023:63/1/2/57342Remote Label : 100000 L2VPN Circuit : 255/12:1023:63/0/1/1EXP bits : 0 Local Encap : dot1qRemote Group ID : 0 Remote Encap : dot1qLocal VC Type : VLAN Remote VC Type : VLANLocal VC MTU : 1500 Remote VC MTU : 1500 Flags 0x0000b9e9: in-rib, in-lblmap, up, in-ldp, from-ldp, from-cfg : ism-up, peer-up, remote-encap, remote-cbitroot@olive# show version 7.1R1.3;groups { mpls { logical-routers { <p*> { interfaces { <fxp*> { unit <*> { family mpls; } } } } } }}apply-groups mpls;system { host-name olive; saved-core-context; login { user juniper { uid 2002; class superuser; authentication { encrypted-password "$1$fTE4aVvP$u8euyzJMcJdVZ/AlBCNoj1"; ## SECRET-DATA } } user vcmux { uid 2000; class superuser; authentication { encrypted-password "$1$meU83Z82$1NOIBKB7kMYmkUu78z.bj/"; ## SECRET-DATA } } } services { ftp; telnet; } syslog { user * { any error; } file messages { any notice; authorization info; } } compress-configuration-files;}logical-routers { p0 { interfaces { fxp1 { unit 1 { vlan-id 10; family inet { address 10.0.10.1/24; } } } fxp2 { unit 4 { vlan-id 40; family inet { address 10.0.40.2/24; } } } lo0 { unit 1 { family inet { address 1.1.1.1/32; } } } } protocols { mpls { interface all; } ospf { area 0.0.0.0 { interface all; } } ldp { interface all; } } routing-options { router-id 1.1.1.1; } } p1 { interfaces { fxp1 { unit 2 { vlan-id 20; family inet { address 10.0.20.1/24; } } } fxp2 { unit 1 { vlan-id 10; family inet { address 10.0.10.2/24; } } } lo0 { unit 2 { family inet { address 2.2.2.2/32; } } } } protocols { mpls { interface all; } ospf { area 0.0.0.0 { interface all; } } ldp { interface all; } } routing-options { router-id 2.2.2.2; } } p2 { interfaces { fxp1 { unit 3 { vlan-id 30; family inet { address 10.0.30.1/24; } } } fxp2 { unit 2 { vlan-id 20; family inet { address 10.0.20.2/24; } } } lo0 { unit 3 { family inet { address 3.3.3.3/32; } } } } protocols { mpls { interface all; } ospf { area 0.0.0.0 { interface all; } } ldp { interface all; } } routing-options { router-id 3.3.3.3; } } p3 { interfaces { fxp1 { unit 5 { vlan-id 50; family inet { address 10.0.50.1/24; } } } fxp2 { unit 3 { vlan-id 30; family inet { address 10.0.30.2/24; } } } lo0 { unit 4 { family inet { address 4.4.4.4/32; } } } } protocols { mpls { interface all; } ospf { area 0.0.0.0 { interface all; } } ldp { interface all; } } routing-options { router-id 4.4.4.4; } }}interfaces { fxp0 { unit 0 { family inet { address 10.192.220.50/24; } } } fxp1 { vlan-tagging; unit 4 { vlan-id 40; family inet { address 10.0.40.1/24; } family mpls; } } fxp2 { vlan-tagging; unit 0 { encapsulation vlan-ccc; vlan-id 100; } } lo0 { unit 5 { family inet { address 5.5.5.5/32; } } }}routing-options { static { route 0.0.0.0/0 next-hop 10.192.220.1; }}protocols { mpls { interface fxp1.4; interface lo0.5; } ospf { area 0.0.0.0 { interface fxp1.4; interface lo0.5; } } ldp { interface fxp1.4; interface lo0.5; session 6.6.6.6 { authentication-key "$9$b.wgJji.m5F"; ## SECRET-DATA } } l2circuit { neighbor 6.6.6.6 { interface fxp2.0 { virtual-circuit-id 100; mtu 1500; } } }}[edit]root@olive#