init(): initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname A
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
ip address 10.10.10.1/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
ip address 192.168.1.254/24
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.10.0.1/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.10.0.1
|
||||
network 10.10.0.1/32 area 1
|
||||
network 10.10.10.0/30 area 1
|
||||
network 192.168.1.0/24 area 1
|
||||
exit
|
||||
!
|
||||
@@ -0,0 +1,32 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname B
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
ip address 10.10.10.2/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
ip address 10.10.10.9/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
ip address 10.10.10.13/30
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.10.0.2/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.10.0.2
|
||||
network 10.10.0.2/32 area 0
|
||||
network 10.10.10.0/30 area 1
|
||||
network 10.10.10.8/30 area 0
|
||||
network 10.10.10.12/30 area 0
|
||||
exit
|
||||
!
|
||||
@@ -0,0 +1,32 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname C
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
ip address 10.10.10.17/30
|
||||
ip ospf cost 1
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
ip address 192.168.4.254/24
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
ip address 10.10.10.21/30
|
||||
ip ospf cost 100
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.10.0.3/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.10.0.3
|
||||
network 10.10.0.3/32 area 2
|
||||
network 10.10.10.0/27 area 2
|
||||
network 192.168.4.0/24 area 2
|
||||
exit
|
||||
!
|
||||
@@ -0,0 +1,39 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname D
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
ip address 10.10.10.10/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
ip address 10.10.10.18/30
|
||||
ip ospf cost 1
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
ip address 10.10.10.25/30
|
||||
ip ospf cost 1
|
||||
exit
|
||||
!
|
||||
interface eth4
|
||||
ip address 10.10.10.28/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.10.0.4/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.10.0.4
|
||||
network 10.10.0.4/32 area 0
|
||||
network 10.10.10.8/30 area 0
|
||||
network 10.10.10.16/30 area 2
|
||||
network 10.10.10.24/30 area 0
|
||||
network 10.10.10.28/30 area 2
|
||||
exit
|
||||
!
|
||||
@@ -0,0 +1,81 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname F
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
description B-eth3
|
||||
ip address 10.10.10.14/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
description D-eth3
|
||||
ip address 10.10.10.26/30
|
||||
ip ospf cost 1
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
description Gandalf-eth3
|
||||
ip address 203.0.113.1/30
|
||||
exit
|
||||
!
|
||||
interface eth4
|
||||
description R1-eth4
|
||||
ip address 203.0.113.5/30
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.10.0.5/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router bgp 65501
|
||||
bgp router-id 10.10.0.5
|
||||
no bgp ebgp-requires-policy
|
||||
neighbor 10.10.0.6 remote-as 65501
|
||||
neighbor 10.10.0.6 update-source lo
|
||||
neighbor 203.0.113.2 remote-as 65502
|
||||
neighbor 203.0.113.2 update-source eth3
|
||||
neighbor 203.0.113.6 remote-as 65503
|
||||
neighbor 203.0.113.6 update-source eth4
|
||||
!
|
||||
address-family ipv4 unicast
|
||||
redistribute ospf metric 10 route-map BGP4-OSPF
|
||||
neighbor 10.10.0.6 next-hop-self
|
||||
neighbor 203.0.113.2 route-map PREFER-ROUTE in
|
||||
neighbor 203.0.113.6 route-map PREFER-ROUTE2 in
|
||||
exit-address-family
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.10.0.5
|
||||
redistribute bgp metric 20 metric-type 1 route-map BGP4-OSPF
|
||||
network 10.10.0.5/32 area 0
|
||||
network 10.10.10.0/27 area 0
|
||||
exit
|
||||
!
|
||||
ip prefix-list ALLOWED_ROUTES seq 10 permit 10.0.0.0/24 ge 32
|
||||
ip prefix-list ALLOWED_ROUTES seq 20 permit 192.168.0.0/16 ge 24
|
||||
ip prefix-list ALLOWED_ROUTES seq 30 deny 0.0.0.0/0 le 32
|
||||
ip prefix-list PREFER-ROUTE seq 5 permit 192.168.2.0/24
|
||||
ip prefix-list PREFER-ROUTE seq 10 deny any
|
||||
ip prefix-list PREFER-ROUTE2 seq 5 permit 192.168.3.0/24
|
||||
ip prefix-list PREFER-ROUTE2 seq 10 deny any
|
||||
!
|
||||
route-map BGP4-OSPF permit 10
|
||||
match ip address prefix-list ALLOWED_ROUTES
|
||||
exit
|
||||
!
|
||||
route-map PREFER-ROUTE permit 10
|
||||
match ip address prefix-list PREFER-ROUTE
|
||||
set local-preference 200
|
||||
set weight 32768
|
||||
exit
|
||||
!
|
||||
route-map PREFER-ROUTE2 permit 10
|
||||
match ip address prefix-list PREFER-ROUTE2
|
||||
set local-preference 200
|
||||
set weight 32768
|
||||
exit
|
||||
!
|
||||
@@ -0,0 +1,62 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname G
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
description C-eth3
|
||||
ip address 10.10.10.22/30
|
||||
ip ospf cost 100
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
description D-eth4
|
||||
ip address 10.10.10.30/30
|
||||
ip ospf cost 10
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
description R1-eth3
|
||||
ip address 203.0.113.9/30
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.10.0.6/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router bgp 65501
|
||||
bgp router-id 10.10.0.6
|
||||
no bgp ebgp-requires-policy
|
||||
neighbor 10.10.0.5 remote-as 65501
|
||||
neighbor 10.10.0.5 shutdown
|
||||
neighbor 10.10.0.5 update-source lo
|
||||
neighbor 203.0.113.10 remote-as 65503
|
||||
neighbor 203.0.113.10 update-source eth3
|
||||
!
|
||||
address-family ipv4 unicast
|
||||
redistribute ospf metric 10 route-map BGP-to-OSPF
|
||||
neighbor 10.10.0.5 next-hop-self
|
||||
neighbor 203.0.113.10 route-map PREPEND out
|
||||
exit-address-family
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.10.0.6
|
||||
redistribute bgp metric 20 metric-type 1 route-map BGP-to-OSPF
|
||||
network 10.10.0.6/32 area 2
|
||||
network 10.10.10.0/27 area 2
|
||||
exit
|
||||
!
|
||||
ip prefix-list ALLOWED_ROUTES seq 10 permit 10.0.0.0/24 ge 32
|
||||
ip prefix-list ALLOWED_ROUTES seq 20 permit 192.168.0.0/16 ge 24
|
||||
ip prefix-list ALLOWED_ROUTES seq 30 deny 0.0.0.0/0 le 32
|
||||
!
|
||||
route-map BGP-to-OSPF permit 10
|
||||
match ip address prefix-list ALLOWED_ROUTES
|
||||
exit
|
||||
!
|
||||
route-map PREPEND permit 10
|
||||
set as-path prepend 65501 65501
|
||||
exit
|
||||
!
|
||||
Reference in New Issue
Block a user