init(): initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname Frodo
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
description Gandalf-eth1
|
||||
ip address 10.20.20.2/30
|
||||
exit
|
||||
!
|
||||
interface eth2
|
||||
description usernet2
|
||||
ip address 192.168.2.254/24
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
description Sam-eth3
|
||||
ip address 10.20.20.9/30
|
||||
exit
|
||||
!
|
||||
interface eth4
|
||||
description usernet3
|
||||
ip address 192.168.5.254/24
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.20.0.2/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.20.0.2
|
||||
network 10.20.0.2/32 area 1
|
||||
network 10.20.20.0/30 area 0
|
||||
network 10.20.20.8/30 area 0
|
||||
network 192.168.2.0/24 area 1
|
||||
network 192.168.5.0/24 area 1
|
||||
area 0 filter-list prefix RESTRICT_5_SUBNET in
|
||||
exit
|
||||
!
|
||||
ip prefix-list RESTRICT_5_SUBNET seq 5 deny 192.168.5.0/24
|
||||
ip prefix-list RESTRICT_5_SUBNET seq 10 permit any
|
||||
!
|
||||
@@ -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
|
||||
!
|
||||
@@ -0,0 +1,25 @@
|
||||
frr version 8.1
|
||||
frr defaults traditional
|
||||
hostname Sam
|
||||
no ipv6 forwarding
|
||||
!
|
||||
interface eth1
|
||||
ip address 10.20.20.6/30
|
||||
exit
|
||||
!
|
||||
interface eth3
|
||||
ip address 10.20.20.10/30
|
||||
exit
|
||||
!
|
||||
interface lo
|
||||
ip address 10.20.0.3/32
|
||||
ip ospf passive
|
||||
exit
|
||||
!
|
||||
router ospf
|
||||
ospf router-id 10.20.0.3
|
||||
network 10.20.0.3/32 area 0
|
||||
network 10.20.20.4/30 area 0
|
||||
network 10.20.20.8/30 area 0
|
||||
exit
|
||||
!
|
||||
Reference in New Issue
Block a user