25639-Cisco-2-Juniper

advertisement
Cisco
ip vrf tsi
rd 20608:600
route-target export 20608:600
route-target import 20608:4120
interface Loopback2
ip address 217.172.8.251 255.255.255.255
interface GigabitEthernet0/0.308
encapsulation dot1Q xxx
ip address 217.172.8.14 255.255.255.240
mpls label protocol ldp
tag-switching ip
router ospf 1
network 217.172.0.0 0.0.15.255 area 0
router bgp 20608
bgp log-neighbor-changes
neighbor 217.172.8.1 remote-as 20608
neighbor 217.172.8.1 update-source Loopback2
address-family ipv4
neighbor 217.172.8.1 activate
neighbor 217.172.8.1 route-reflector-client
neighbor 217.172.8.1 next-hop-self
neighbor 217.172.8.1 send-community extended
address-family vpnv4
neighbor 217.172.8.1 activate
neighbor 217.172.8.1 route-reflector-client
neighbor 217.172.8.1 next-hop-self
neighbor 217.172.8.1 send-community both
#sh mpls ldp neighbor
Peer LDP Ident: 217.172.8.245:0; Local LDP Ident 217.172.8.251:0
TCP connection: 217.172.8.245.646 - 217.172.8.251.38821
State: Oper; Msgs sent/rcvd: 7260/6348; Downstream
Up time: 17:36:47
LDP discovery sources:
GigabitEthernet0/0.308, Src IP addr: 217.172.8.1
Addresses bound to peer LDP Ident:
217.172.8.1 217.172.8.134 217.172.8.245
#Show ip bgp summary
Neighbor
217.172.8.1
V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
4 20608 8800 109598
0 0 0 17:37:30 (NoNeg)
Neighbor ID Pri State
Dead Time Address
Interface
217.172.8.245 128 FULL/BDR
00:00:31 217.172.8.1 GigabitEthernet0/0.308
Juniper
interfaces {
apply-groups [ re0 re1 ];
ge-7/1/0 {
description "interfaccia in trunk 802.1q ";
vlan-tagging;
mtu 1642;
unit 59 {
<----- test interface attached to a vrf vpn-test
description TEST-VPN-L3;
vlan-id 59;
family inet {
address 192.168.0.102/29;
}
family mpls;
}
unit 308 {
<---- interface connecting Cisco backbone
vlan-id 308;
family inet {
mtu 1500;
address 217.172.8.1/28;
}
family mpls;
lo0 {
unit 0 {
family inet {
filter {
input to-RE;
}
address 217.172.8.245/32;
}
}
}
}
protocols {
mpls {
label-switched-path Juniper-2-Cisco {
to 217.172.8.14;
}
interface ge-7/1/0.308;
interface ge-7/1/0.59;
}
bgp {
group r-reflector {
type internal;
family inet-vpn {
unicast;
}
local-as 20608;
neighbor 217.172.8.14;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface ge-7/1/0.308;
}
}
ldp {
interface ge-7/1/0.308;
interface all;
}
}
policy-options {
policy-statement vpn-test-import {
term a {
from {
protocol bgp;
community vpn-test;
}
}
term b {
then reject;
}
}
community vpn-test members target:20608:600;
}
routing-instances {
vpn-test {
instance-type vrf;
interface ge-7/1/0.59;
route-distinguisher 20608:4120;
vrf-import vpn-test-import;
vrf-target {
import target:20608:600;
export target:20608:4120;
}
vrf-table-label;
}
}
# run show ospf neighbor
Address
Interface
217.172.8.14 ge-7/1/0.308
State ID
Pri Dead
Full
217.172.8.251
1
35
# run show bgp neighbor
Peer: 217.172.8.14+179 AS 20608 Local: 217.172.8.1+1271 AS 20608
Type: Internal State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: Cease
Options: <Preference AddressFamily LocalAS Rib-group Refresh>
Address families configured: inet-vpn-unicast
Holdtime: 90 Preference: 170 Local AS: 20608 Local System AS: 0
Number of flaps: 2
Last flap event: Stop
Error: 'Cease' Sent: 2 Recv: 0
Peer ID: 217.172.8.251 Local ID: 217.172.8.245 Active Holdtime: 90
Keepalive Interval: 30
Peer index: 0
BFD: disabled, down
NLRI advertised by peer: inet-unicast inet-vpn-unicast
NLRI for this session: inet-vpn-unicast
Peer supports Refresh capability (2)
Table bgp.l3vpn.0
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: not advertising
Active prefixes:
0
Received prefixes:
3
Suppressed due to damping: 0
Table vpn-test.inet.0 Bit: 30000
RIB State: BGP restart is complete
RIB State: VPN restart is complete
Send state: in sync
Active prefixes:
0
Received prefixes:
0
Suppressed due to damping: 0
Advertised prefixes:
1
Last traffic (seconds): Received 2 Sent 14 Checked 32
Input messages: Total 112236 Updates 104417 Refreshes 1 Octets 15826855
Output messages: Total 8708 Updates 3
Refreshes 16 Octets 165796
Output Queue[1]: 0
Output Queue[2]: 0
# run show ldp neighbor
Address
Interface
Label space ID
Hold time
217.172.8.14
ge-7/1/0.308
217.172.8.251:0
14
At the end the routing table:
Cisco
#sh ip route vrf tsi 192.168.0.102
Routing entry for 192.168.0.96/29
Known via "bgp 20608", distance 200, metric 0, type internal
Last update from 217.172.8.1 17:53:48 ago
Routing Descriptor Blocks:
* 217.172.8.1 (Default-IP-Routing-Table), from 217.172.8.1, 17:53:48 ago
Route metric is 0, traffic share count is 1
AS Hops 0
Juniper
# run show route table vpn-test
vpn-test.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.0.96/29 *[Direct/0] 17:52:37 <------- only the local routes!!!
> via ge-7/1/0.59
192.168.0.102/32 *[Local/0] 17:52:37
Local via ge-7/1/0.59
Download