Skip to content

Commit

Permalink
rip-topo1-vrf: test rip with vrf feature
Browse files Browse the repository at this point in the history
This topotest handles the testing when rip is bound to a VRF netns
interface.

Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND committed Aug 24, 2018
1 parent efd112e commit ca304df
Show file tree
Hide file tree
Showing 19 changed files with 629 additions and 0 deletions.
16 changes: 16 additions & 0 deletions rip-topo1-vrf/r1/rip_status.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in XX seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
r1-eth1 2 2
Routing for Networks:
193.1.1.0/26
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
193.1.1.2 0 0 120 XX:XX:XX
Distance: (default is 120)
10 changes: 10 additions & 0 deletions rip-topo1-vrf/r1/ripd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
log file ripd.log
!
router rip vrf r1-cust1
version 2
network 193.1.1.0/26
!
line vty
!


10 changes: 10 additions & 0 deletions rip-topo1-vrf/r1/show_ip_rip.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
(n) - normal, (s) - static, (d) - default, (r) - redistribute,
(i) - interface

Network Next Hop Metric From Tag Time
R(n) 192.168.2.0/24 193.1.1.2 3 193.1.1.2 0 XX:XX
R(n) 192.168.3.0/24 193.1.1.2 3 193.1.1.2 0 XX:XX
C(i) 193.1.1.0/26 0.0.0.0 1 self 0
R(n) 193.1.2.0/24 193.1.1.2 2 193.1.1.2 0 XX:XX
3 changes: 3 additions & 0 deletions rip-topo1-vrf/r1/show_ip_route.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
R>* 192.168.2.0/24 [120/3] via 193.1.1.2, r1-eth1
R>* 192.168.3.0/24 [120/3] via 193.1.1.2, r1-eth1
R>* 193.1.2.0/24 [120/2] via 193.1.1.2, r1-eth1
19 changes: 19 additions & 0 deletions rip-topo1-vrf/r1/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
log file zebra.log
!
hostname r1
!
interface r1-eth0 vrf r1-cust1
ip address 192.168.1.1/24
!
interface r1-eth1 vrf r1-cust1
description to sw2 - RIPv2 interface
ip address 193.1.1.1/26
no link-detect
!
ip forwarding
ipv6 forwarding
!
!
line vty
!

20 changes: 20 additions & 0 deletions rip-topo1-vrf/r1/zebra.conf~
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
log file zebra.log
!
hostname r1
password zebra
!
interface r1-eth0 vrf r1-cust1
ip address 192.168.1.1/24
!
interface r1-eth1 vrf r1-cust1
description to sw2 - RIPv2 interface
ip address 193.1.1.1/26
no link-detect
!
ip forwarding
ipv6 forwarding
!
!
line vty
!

18 changes: 18 additions & 0 deletions rip-topo1-vrf/r2/rip_status.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in XX seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
r2-eth0 2 2
r2-eth1 2 2
Routing for Networks:
193.1.1.0/26
193.1.2.0/24
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
193.1.2.2 0 0 120 XX:XX:XX
Distance: (default is 120)
13 changes: 13 additions & 0 deletions rip-topo1-vrf/r2/ripd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
log file ripd.log
!
!
router rip vrf r2-cust1
version 2
network 193.1.1.0/26
network 193.1.2.0/24
!
line vty
!



10 changes: 10 additions & 0 deletions rip-topo1-vrf/r2/show_ip_rip.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
(n) - normal, (s) - static, (d) - default, (r) - redistribute,
(i) - interface

Network Next Hop Metric From Tag Time
R(n) 192.168.2.0/24 193.1.2.2 2 193.1.2.2 0 XX:XX
R(n) 192.168.3.0/24 193.1.2.2 2 193.1.2.2 0 XX:XX
C(i) 193.1.1.0/26 0.0.0.0 1 self 0
C(i) 193.1.2.0/24 0.0.0.0 1 self 0
2 changes: 2 additions & 0 deletions rip-topo1-vrf/r2/show_ip_route.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
R>* 192.168.2.0/24 [120/2] via 193.1.2.2, r2-eth1
R>* 192.168.3.0/24 [120/2] via 193.1.2.2, r2-eth1
21 changes: 21 additions & 0 deletions rip-topo1-vrf/r2/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
log file zebra.log
!
hostname r2
!
interface r2-eth0 vrf r2-cust1
description to sw2 - RIPv2 interface
ip address 193.1.1.2/26
no link-detect
!
interface r2-eth1 vrf r2-cust1
description to sw3 - RIPv1 interface
ip address 193.1.2.1/24
no link-detect
!
ip forwarding
ipv6 forwarding
!
!
line vty
!

16 changes: 16 additions & 0 deletions rip-topo1-vrf/r3/rip_status.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in XX seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing: connected static
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
r3-eth1 2 2
Routing for Networks:
193.1.2.0/24
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
193.1.2.1 0 0 120 XX:XX:XX
Distance: (default is 120)
13 changes: 13 additions & 0 deletions rip-topo1-vrf/r3/ripd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
log file ripd.log
!
!
router rip vrf r3-cust1
version 2
redistribute connected
redistribute static
network 193.1.2.0/24
!
line vty
!


10 changes: 10 additions & 0 deletions rip-topo1-vrf/r3/show_ip_rip.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
(n) - normal, (s) - static, (d) - default, (r) - redistribute,
(i) - interface

Network Next Hop Metric From Tag Time
S(r) 192.168.2.0/24 192.168.3.10 1 self 0
C(r) 192.168.3.0/24 0.0.0.0 1 self 0
R(n) 193.1.1.0/26 193.1.2.1 2 193.1.2.1 0 XX:XX
C(i) 193.1.2.0/24 0.0.0.0 1 self 0
1 change: 1 addition & 0 deletions rip-topo1-vrf/r3/show_ip_route.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
R>* 193.1.1.0/26 [120/2] via 193.1.2.1, r3-eth1
22 changes: 22 additions & 0 deletions rip-topo1-vrf/r3/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
log file zebra.log
!
hostname r3
!
interface r3-eth0 vrf r3-cust1
description to sw4 - Stub interface
ip address 192.168.3.1/24
no link-detect
!
interface r3-eth1 vrf r3-cust1
description to sw3 - RIPv2 interface
ip address 193.1.2.2/24
no link-detect
!
ip route 192.168.2.0/24 192.168.3.10 vrf r3-cust1
!
ip forwarding
ipv6 forwarding
!
!
line vty
!
60 changes: 60 additions & 0 deletions rip-topo1-vrf/test_rip_topo1_vrf.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
## GraphViz file for test_rip_topo1_vrf
##
## Color coding:
#########################
## Main FRR: #f08080 red
## Switches: #d0e0d0 gray
## RIP: #19e3d9 Cyan
## RIPng: #fcb314 dark yellow
## OSPFv2: #32b835 Green
## OSPFv3: #19e3d9 Cyan
## ISIS IPv4 #fcb314 dark yellow
## ISIS IPv6 #9a81ec purple
## BGP IPv4 #eee3d3 beige
## BGP IPv6 #fdff00 yellow
##### Colors (see http://www.color-hex.com/)

graph test_rip_topo1_vrf {
overlap=false;
constraint=false;

// title
labelloc="t";
label="Test Topologoy RIP Topo1";

######################
# Routers
######################

# Main FRR Router with all protocols
R1 [shape=doubleoctagon, label="R1 FRR\nMain Router", fillcolor="#f08080", style=filled];
# RIP Routers
R2 [shape=doubleoctagon, label="R2 FRR\nRIP Router", fillcolor="#19e3d9", style=filled];
R3 [shape=doubleoctagon, label="R3 FRR\nRIP Router", fillcolor="#19e3d9", style=filled];

######################
# Network Lists
######################

SW1_R1_stub [label="SW1\n192.168.1.0/24", fillcolor="#d0e0d0", style=filled];

# RIP Networks
SW2_R1_R2 [label="SW2\nRIPv2\n193.1.1.0/26", fillcolor="#d0e0d0", style=filled];
SW3_R2_R3 [label="SW3\nRIPv1\n193.1.2.0/24", fillcolor="#d0e0d0", style=filled];
SW4_R3 [label="SW4\n192.168.3.0/24", fillcolor="#d0e0d0", style=filled];
Net_R3_remote [label="Static Net\n192.168.2.0/24"];

######################
# Network Connections
######################
R1 -- SW1_R1_stub [label = "eth0\n.1\n::1"];

# RIP Network
R1 -- SW2_R1_R2 [label = "eth1\n.1"];
SW2_R1_R2 -- R2 [label = "eth0\n.2"];
R2 -- SW3_R2_R3 [label = "eth1\n.1"];
SW3_R2_R3 -- R3 [label = "eth1\n.2"];
R3 -- SW4_R3 [label = "eth0\n.1"];
SW4_R3 -- Net_R3_remote [label = ".10"];

}
Binary file added rip-topo1-vrf/test_rip_topo1_vrf.pdf
Binary file not shown.
Loading

0 comments on commit ca304df

Please sign in to comment.