Hi,expert
I met an interesting question
let 's look into the route adverstised by r8 to r7
r8-r4-r5-r3-r2-r7
in r5 's route table
bgp.l3vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
100:1:8.8.8.8/32 (1 entry, 0 announced)
*BGP Preference: 170/-101
Route Distinguisher: 100:1
Next hop type: Indirect
Next-hop reference count: 3
Source: 4.4.4.4
Next hop type: Router, Next hop index: 865
Next hop: 192.168.56.6 via em1.56 weight 0x1, selected
Label-switched-path r5-r4
Label operation: Push 16, Push 299776(top)
Protocol next hop: 4.4.4.4
Push 16
Indirect next hop: 8d630a8 131070
State: <Active Int Ext>
Local AS: 200 Peer AS: 200
Age: 31:53 Metric2: 2
Task: BGP_200.4.4.4.4+179
AS path: 78 I
Communities: target:100:1
Import Accepted
VPN Label: 16
Localpref: 100
Router ID: 4.4.4.4
Secondary Tables: vpn-a.inet.0
vpn table
8.8.8.8/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Route Distinguisher: 100:1
Next hop type: Indirect
Next-hop reference count: 3
Source: 4.4.4.4
Next hop type: Router, Next hop index: 865
Next hop: 192.168.56.6 via em1.56 weight 0x1, selected
Label-switched-path r5-r4
Label operation: Push 16, Push 299776(top)
Protocol next hop: 4.4.4.4
Push 16
Indirect next hop: 8d630a8 131070
State: <Secondary Active Int Ext>
Local AS: 200 Peer AS: 200
Age: 31:53 Metric2: 2
Task: BGP_200.4.4.4.4+179
Announcement bits (2): 0-BGP RT Background 1-KRT
AS path: 78 I
Communities: target:100:1
Import Accepted
VPN Label: 16
Localpref: 100
Router ID: 4.4.4.4
Primary Routing Table bgp.l3vpn.0
in r3 's route table
# run show route 8.8.8.8/32 logical-system r3 detail
vpn-a.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
8.8.8.8/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Router, Next hop index: 895
Next-hop reference count: 2
Source: 192.168.35.5
Next hop: 192.168.35.5 via em2.35, selected
State: <Active Ext>
Peer AS: 200
Age: 34:59
Task: BGP_200.192.168.35.5+52468
Announcement bits (2): 0-BGP RT Background 1-KRT
AS path: 200 78 I
Communities: target:100:1
Accepted
Localpref: 100
Router ID: 192.168.35.5
here is the question,when r3 advertise this 8.8.8.8 to r2,whether it will add another target:100:1 because there is a config in vpn-a
:
routing-instances {
vpn-a {
instance-type vrf;
interface em2.35;
route-distinguisher 100:1;
vrf-target target:100:1;
in r2 's route table:
# run show route 8.8.8.8/32 logical-system r2 detail
vpn-a.inet.0: 5 destinations, 6 routes (5 active, 0 holddown, 0 hidden)
8.8.8.8/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Route Distinguisher: 100:1
Next hop type: Indirect
Next-hop reference count: 6
Source: 3.3.3.3
Next hop type: Router, Next hop index: 893
Next hop: 192.168.12.1 via em2.12 weight 0x1, selected
Label-switched-path r2-r3
Label operation: Push 16, Push 299808(top)
Protocol next hop: 3.3.3.3
Push 16
Indirect next hop: 8d1f0a8 131073
State: <Secondary Active Int Ext>
Local AS: 100 Peer AS: 100
Age: 37:15 Metric2: 2
Task: BGP_100.3.3.3.3+179
Announcement bits (2): 0-BGP RT Background 1-KRT
AS path: 200 78 I
Communities: target:100:1
Import Accepted
VPN Label: 16
Localpref: 100
Router ID: 3.3.3.3
Primary Routing Table bgp.l3vpn.0
bgp.l3vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
100:1:8.8.8.8/32 (1 entry, 0 announced)
*BGP Preference: 170/-101
Route Distinguisher: 100:1
Next hop type: Indirect
Next-hop reference count: 6
Source: 3.3.3.3
Next hop type: Router, Next hop index: 893
Next hop: 192.168.12.1 via em2.12 weight 0x1, selected
Label-switched-path r2-r3
Label operation: Push 16, Push 299808(top)
Protocol next hop: 3.3.3.3
Push 16
Indirect next hop: 8d1f0a8 131073
State: <Active Int Ext>
Local AS: 100 Peer AS: 100
Age: 37:15 Metric2: 2
Task: BGP_100.3.3.3.3+179
AS path: 200 78 I
Communities: target:100:1
Import Accepted
VPN Label: 16
Localpref: 100
Router ID: 3.3.3.3
Secondary Tables: vpn-a.inet.0
in r7:
# run show route 8.8.8.8/32 logical-system r7 detail
inet.0: 5 destinations, 6 routes (5 active, 0 holddown, 1 hidden)
8.8.8.8/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Router, Next hop index: 779
Next-hop reference count: 4
Source: 192.168.27.2
Next hop: 192.168.27.2 via em1.27, selected
State: <Active Ext>
Local AS: 78 Peer AS: 100
Age: 39:00
Task: BGP_100.192.168.27.2+59993
Announcement bits (1): 0-KRT
AS path: 100 200 100 I
Communities: target:100:1
Accepted
Localpref: 100
Router ID: 192.168.27.2
1:why not r3 add another rt in this route?it seems rt community is always there,the whole path!
2: I can see rd is removed when pe import vpn route to its CE,right?