Lab 2 Topology Discovery







Part 1: Analyzing the Topology


Part 2: Loading The Configuration In



Part 3: Establishing a BGP-LS Session Between vmx-2 and the NorthStar Controller

bgp config
lab@vmx-2# top show protocols bgp | display set 
set protocols bgp group northstar type internal
set protocols bgp group northstar local-address 192.168.1.2
set protocols bgp group northstar family traffic-engineering unicast
set protocols bgp group northstar neighbor 192.168.1.100

show bgp summary

show bgp
lab@vmx-2# run show bgp summary 
Threading mode: BGP I/O
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
lsdist.0             
                       0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
192.168.1.100         64512          9          8       0       0        3:41 Establ
  lsdist.0: 0/0/0/0

[edit protocols bgp group northstar]

Part 4: Advertising Routes to the NorthStar Controller : from vMX-2 to NorthStar

show route


policy
# Create a Policy: from TE --- > ?  accept
set policy-options policy-statement TE term 10 from family traffic-engineering
set policy-options policy-statement TE term 10 then accept

#
set protocols mpls traffic-engineering database import policy TE
show table lsdist.0
lab@vmx-2# run show route table lsdist.0 

lsdist.0: 26 destinations, 26 routes (26 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.1 OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.2 OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.3 OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.4 OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.5 OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.6 OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
LINK { Local { AS:64512 Area:0.0.0.0 IPv4:172.20.20.1 }.{ IPv4:172.22.101.1 } Remote { AS:64512 Area:0.0.0.0 IPv4:172.20.20.3 }.{ IPv4:172.22.101.2 } OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious
LINK { Local { AS:64512 Area:0.0.0.0 IPv4:172.20.20.1 }.{ IPv4:172.22.102.1 } Remote { AS:64512 Area:0.0.0.0 IPv4:172.20.20.4 }.{ IPv4:172.22.102.2 } OSPF:0 }/1216              
                   *[OSPF/10] 00:00:57
                       Fictitious


Advertise route to BGP peer

show route advertising-protocol bgp 192.168.1.100

export to BGP
lab@vmx-2# show | display set 
set protocols bgp group northstar type internal
set protocols bgp group northstar local-address 192.168.1.2
set protocols bgp group northstar family traffic-engineering unicast
set protocols bgp group northstar export TE             > > > > > > > > > > > > > > > Added 
set protocols bgp group northstar neighbor 192.168.1.100


Part 5: Resetting the Lab Topology

show export route
lab@vmx-2> show route advertising-protocol bgp 192.168.1.100 

lsdist.0: 26 destinations, 26 routes (26 active, 0 holddown, 0 hidden)
  Prefix		  Nexthop	       MED     Lclpref    AS path
  NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.1 OSPF:0 }/1216                  
*                         Self                         100        I
                Area border router: No
                External router: No
                Attached: No
                Overload: No
  Prefix		  Nexthop	       MED     Lclpref    AS path
  NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.2 OSPF:0 }/1216                  
*                         Self                         100        I
                Area border router: No
                External router: No
                Attached: No
                Overload: No
  Prefix		  Nexthop	       MED     Lclpref    AS path
  NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.3 OSPF:0 }/1216                  
*                         Self                         100        I
                Area border router: No
                External router: No
                Attached: No
                Overload: No
  Prefix		  Nexthop	       MED     Lclpref    AS path
  NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.4 OSPF:0 }/1216                  
*                         Self                         100        I
                Area border router: No
                External router: No
                Attached: No
                Overload: No
  Prefix		  Nexthop	       MED     Lclpref    AS path
  NODE { AS:64512 Area:0.0.0.0 IPv4:172.20.20.5 OSPF:0 }/1216                  
*                         Self                         100        I
                Area border router: No
                External router: No
                Attached: No
                Overload: No
. . . . 

  Prefix		  Nexthop	       MED     Lclpref    AS path
  LINK { Local { AS:64512 Area:0.0.0.0 IPv4:172.20.20.1 }.{ IPv4:172.22.101.1 } Remote { AS:64512 Area:0.0.0.0 IPv4:172.20.20.3 }.{ IPv4:172.22.101.2 } OSPF:0 }/1216                  
*                         Self                         100        I
                Color: 10
                Maximum bandwidth: 1000Mbps
                Reservable bandwidth: 1000Mbps
                Unreserved bandwidth by priority:
                  0   1000Mbps
                  1   1000Mbps
                  2   1000Mbps
                  3   1000Mbps
                  4   1000Mbps
                  5   1000Mbps
                  6   1000Mbps
                  7   1000Mbps
                TE Metric: 1
  Prefix		  Nexthop	       MED     Lclpref    AS path
  LINK { Local { AS:64512 Area:0.0.0.0 IPv4:172.20.20.1 }.{ IPv4:172.22.102.1 } Remote { AS:64512 Area:0.0.0.0 IPv4:172.20.20.4 }.{ IPv4:172.22.102.2 } OSPF:0 }/1216                  
*                         Self                         100        I
                Color: 12
                Maximum bandwidth: 1000Mbps
                Reservable bandwidth: 1000Mbps
                Unreserved bandwidth by priority:
                  0   1000Mbps
                  1   1000Mbps
                  2   1000Mbps
                  3   1000Mbps
                  4   1000Mbps
                  5   1000Mbps
                  6   1000Mbps
                  7   1000Mbps          
                TE Metric: 1