init(): initial commit
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname Gandalf
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
ip address 10.20.20.1/30
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
ip address 10.20.20.5/30
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
ip address 203.0.113.2/30
|
||||
exit
|
||||
!
|
||||
interface eth5
|
||||
ip address 203.0.113.13/30
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.20.0.1/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router bgp 65502
|
||||
bgp router-id 10.20.0.1
|
||||
no bgp ebgp-requires-policy
|
||||
neighbor 203.0.113.1 remote-as 65501
|
||||
neighbor 203.0.113.1 update-source eth3
|
||||
neighbor 203.0.113.14 remote-as 65503
|
||||
neighbor 203.0.113.14 update-source eth5
|
||||
!
|
||||
address-family ipv4 unicast
|
||||
redistribute ospf metric 10 route-map BGP4-OSPF
|
||||
exit-address-family
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.20.0.1
|
||||
redistribute bgp metric 20 metric-type 1 route-map BGP4-OSPF
|
||||
network 10.20.0.1/32 area 0
|
||||
network 10.20.20.0/30 area 0
|
||||
network 10.20.20.4/30 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
|
||||
!
|
||||
route-map BGP4-OSPF permit 10
|
||||
match ip address prefix-list ALLOWED_ROUTES
|
||||
exit
|
||||
!
|
||||
Reference in New Issue
Block a user