1 # Simple FreeRangeRouting Route-Server Test
4 +----------+ +----------+ +----------+ +----------+ +----------+
5 | peer1 | | peer2 | | peer3 | | peer4 | | peer5 |
6 | AS 65001 | | AS 65002 | | AS 65003 | | AS 65004 | | AS 65005 |
7 +-----+----+ +-----+----+ +-----+----+ +-----+----+ +-----+----+
8 | .1 | .2 | .3 | .4 | .5
9 | ______/ / / _________/
10 \ / ________________/ / /
11 | | / _________________________/ / +----------+
12 | | | / __________________________/ ___| peer6 |
13 | | | | / ____________________________/.6 | AS 65006 |
14 | | | | | / _________________________ +----------+
15 | | | | | | / __________________ \ +----------+
16 | | | | | | | / \ \___| peer7 |
17 | | | | | | | | \ .7 | AS 65007 |
18 ~~~~~~~~~~~~~~~~~~~~~ \ +----------+
19 ~~ SW1 ~~ \ +----------+
20 ~~ Switch ~~ \_____| peer8 |
21 ~~ 172.16.1.0/24 ~~ .8 | AS 65008 |
22 ~~~~~~~~~~~~~~~~~~~~~ +----------+
34 ~~~~~~~~~~~~~ Stub Network is redistributed
35 ~~ SW0 ~~ into each BGP view with different
36 ~~ 172.20.0.1/28 ~~ attributes (using route-map)
42 Full config as used is in r1 subdirectory
44 Simplified `R1` config:
49 description Stub Network
50 ip address 172.20.0.1/28
54 description to PE router - vlan1
55 ip address 172.16.1.254/24
59 bgp router-id 172.30.1.1
60 network 172.20.0.0/28 route-map local1
62 neighbor 172.16.1.1 remote-as 65001
63 neighbor 172.16.1.2 remote-as 65002
64 neighbor 172.16.1.5 remote-as 65005
67 bgp router-id 172.30.1.1
68 network 172.20.0.0/28 route-map local2
70 neighbor 172.16.1.3 remote-as 65003
71 neighbor 172.16.1.4 remote-as 65004
74 bgp router-id 172.30.1.1
77 neighbor 172.16.1.6 remote-as 65006
78 neighbor 172.16.1.7 remote-as 65007
79 neighbor 172.16.1.8 remote-as 65008
81 route-map local1 permit 10
82 set community 100:9999 additive
85 route-map local2 permit 10
86 set as-path prepend 100 100 100 100 100
87 set community 100:1 additive
93 ### Check if FRR is running
95 Test is executed by running
97 vtysh -c "show logging" | grep "Logging configuration for"
99 on router `R1`. This should return the logging information for all daemons registered
100 to Zebra and the list of running daemons is compared to the daemons started for this
101 test (`zebra` and `bgpd`)
103 ### Verify for BGP to converge
105 BGP is expected to converge on each view within 60s total time. Convergence is verified by executing
107 vtysh -c "show ip bgp view 1 summary"
108 vtysh -c "show ip bgp view 2 summary"
109 vtysh -c "show ip bgp view 3 summary"
111 and expecting 11 routes seen in the last column for each peer. (Each peer sends 11 routes)
113 ### Verifying BGP Routing Tables
115 Routing table is verified by running
117 vtysh -c "show ip bgp view 1"
118 vtysh -c "show ip bgp view 2"
119 vtysh -c "show ip bgp view 3"
121 and comparing the result against the stored table in the r1/show_ip_bgp_view_NN.ref files
122 (with NN 1, 2, 3) (A few header and trailer lines are cut/adjusted ahead of the compare to
123 adjust for different output based on recent changes)