Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added FRR "Transit AS" Labs #12

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 12.0.0.10/30 up
ifconfig eth1 12.0.0.14/30 up
ifconfig eth2 100.0.0.1/8 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
! as100r1
!
! FRRouting configuration file
!
password zebra
enable password zebra
!
log file /var/log/frr/frr.log
!
! BGP CONFIGURATION
!
router bgp 100
no bgp ebgp-requires-policy
!
! NEIGHBORS
!
neighbor 12.0.0.9 remote-as 20
neighbor 12.0.0.13 remote-as 30
!
! NETWORKS
!
network 12.0.0.8/30
network 12.0.0.12/30
network 100.0.0.0/8
!
! POLICIES
!
neighbor 12.0.0.9 prefix-list mineOut out
neighbor 12.0.0.13 prefix-list mineOut out
neighbor 12.0.0.13 route-map lowerPreference in
!
ip prefix-list mineOut permit 100.0.0.0/8
!
route-map lowerPreference permit 10
set local-preference 10


Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service integrated-vtysh-config
hostname as100r1-frr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 11.0.0.1/30 up
ifconfig eth1 10.0.0.1/30 up
ifconfig eth2 10.0.0.10/30 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=no
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
! as10r4
!
! FRRouting configuration file
!
password zebra
enable password zebra
!
log file /var/log/frr/frr.log
!
! RIP CONFIGURATION
!
router rip
network eth0
network eth1
network eth2


Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service integrated-vtysh-config
hostname as10r4-frr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 10.0.0.2/30 up
ifconfig eth1 11.0.0.5/30 up
ifconfig eth2 10.0.0.5/30 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=no
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
! as10r5
!
! FRRouting configuration file
!
password zebra
enable password zebra
!
log file /var/log/frr/frr.log
!
! RIP CONFIGURATION
!
router rip
network eth0
network eth1
network eth2

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service integrated-vtysh-config
hostname as10r5-frr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 10.0.0.9/30 up
ifconfig eth1 10.0.0.6/30 up
ifconfig eth2 11.0.0.9/30 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=no
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
! as10r6
!
! FRRouting configuration file
!
password zebra
enable password zebra
!
log file /var/log/frr/frr.log
!
! RIP CONFIGURATION
!
router rip
network eth0
network eth1
network eth2

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service integrated-vtysh-config
hostname as10r6-frr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifconfig eth0 11.0.0.2/30 up

ifconfig lo:1 1.1.1.1 netmask 255.255.255.255 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
! as10rt1
!
! FRRouting configuration file
!
password zebra
enable password zebra
!
log file /var/log/frr/frr.log
!
! RIP CONFIGURATION
!
router rip
network eth0
redistribute connected
!
! BGP CONFIGURATION
!
router bgp 10
no bgp ebgp-requires-policy
!
! NEIGHBORS
!
neighbor 2.2.2.2 remote-as 10
neighbor 2.2.2.2 update-source 1.1.1.1
neighbor 3.3.3.3 remote-as 10
neighbor 3.3.3.3 update-source 1.1.1.1


Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service integrated-vtysh-config
hostname as10rt1-frr
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ifconfig eth0 12.0.0.1/30 up
ifconfig eth1 11.0.0.6/30 up

ifconfig lo:1 2.2.2.2 netmask 255.255.255.255 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
! as10rt2
!
! FRRouting configuration file
!
password zebra
enable password zebra
!
log file /var/log/frr/frr.log
!
! RIP CONFIGURATION
!
router rip
network eth1
redistribute connected
redistribute bgp route-map eBGP
!
ip prefix-list myNeighbor permit 12.0.0.0/30 le 32
access-list prefixAS100 permit 100.0.0.0/8
!
route-map eBGP deny 10
match ip address prefixAS100
route-map eBGP permit 20
match ip next-hop prefix-list myNeighbor
!
! BGP CONFIGURATION
!
router bgp 10
no bgp network import-check
no bgp ebgp-requires-policy
!
! NEIGHBORS
!
neighbor 1.1.1.1 remote-as 10
neighbor 1.1.1.1 update-source 2.2.2.2
neighbor 3.3.3.3 remote-as 10
neighbor 3.3.3.3 update-source 2.2.2.2
neighbor 12.0.0.2 remote-as 20
!
! NETWORKS
!
network 12.0.0.0/30
network 10.0.0.0/24
network 11.0.0.0/24
!
! POLICIES
!
neighbor 12.0.0.2 route-map dePref in
neighbor 1.1.1.1 prefix-list toPeers out
neighbor 3.3.3.3 prefix-list toPeers out
!
route-map dePref permit 10
set local-preference 10
!
ip prefix-list toPeers deny 10.0.0.0/24
ip prefix-list toPeers deny 11.0.0.0/24
ip prefix-list toPeers permit any



Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service integrated-vtysh-config
hostname as10rt2-frr
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ifconfig eth0 12.0.0.5/30 up
ifconfig eth1 11.0.0.10/30 up

ifconfig lo:1 3.3.3.3 netmask 255.255.255.255 up

/etc/init.d/frr start
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
staticd=no
pbrd=no
bfdd=no
fabricd=no
Loading