Cisco | Distribute - Prefix-List - OSPF-to-BGP
Lab ini lanjutan dari Lab sebeleumnya Distribute - Prefix-List - RIP - EIGRP -OSPF. Tujuan lab ini adalah untuk mensimulaskiakn prefix-list dan route-map, yg mana segmetn 40.1.1.0/24 dan 40.1.2.0/24 yang bersal dari R7 area OSPF kita tidak mau tampilkan dirouting table di area BGP. Berikut konfigurasi dari masing-maing perangkat.
R6
interface eth0/2
ip address 10.15.15.1 255.255.255.252
no sh
exit
router bgp 65111
bgp router-id 6.6.6.6
redistribute ospf 1
redistribute ospf 1 route-map OSPF->BGP
neighbor 10.15.15.2 remote-as 65222
neighbor 10.15.15.2 next-hop-self
no au
exi
!
ip prefix-list OSPF_Redist deny 40.1.1.0/24 le 32
ip prefix-list OSPF_Redist deny 40.1.2.0/24 le 32
ip prefix-list OSPF_Redist permit 0.0.0.0/0 le 32
!
route-map OSPF->BGP permit 10
match ip address prefix-list OSPF_Redist
exi
router ospf 1
redistribute bgp 65111 subnets
exi
--------
R10
interface eth0/0
ip address 10.15.15.2 255.255.255.252
no sh
exit
interface eth0/1
ip address 10.16.16.1 255.255.255.252
no sh
exit
int loo0
ip add 192.168.10.1 255.255.255.255
exit
router bgp 65222
bgp router-id 192.168.10.1
network 192.168.10.1 mask 255.255.255.255
neighbor 10.15.15.1 remote-as 65111
neighbor 10.16.16.2 remote-as 65222
neighbor 10.16.16.2 next-hop-self
exit
--------------
R11
hostname R11
interface eth0/0
ip address 10.16.16.2 255.255.255.252
no sh
exit
int loo0
ip add 192.168.20.1 255.255.255.255
exit
router bgp 65222
bgp router-id 192.168.20.1
network 192.168.20.1 mask 255.255.255.255
neighbor 10.16.16.1 remote-as 65222
neighbor 10.16.16.1 soft-reconfiguration inbound
exit
interface eth0/2
ip address 10.15.15.1 255.255.255.252
no sh
exit
router bgp 65111
bgp router-id 6.6.6.6
redistribute ospf 1
redistribute ospf 1 route-map OSPF->BGP
neighbor 10.15.15.2 remote-as 65222
neighbor 10.15.15.2 next-hop-self
no au
exi
!
ip prefix-list OSPF_Redist deny 40.1.1.0/24 le 32
ip prefix-list OSPF_Redist deny 40.1.2.0/24 le 32
ip prefix-list OSPF_Redist permit 0.0.0.0/0 le 32
!
route-map OSPF->BGP permit 10
match ip address prefix-list OSPF_Redist
exi
router ospf 1
redistribute bgp 65111 subnets
exi
--------
R10
interface eth0/0
ip address 10.15.15.2 255.255.255.252
no sh
exit
interface eth0/1
ip address 10.16.16.1 255.255.255.252
no sh
exit
int loo0
ip add 192.168.10.1 255.255.255.255
exit
router bgp 65222
bgp router-id 192.168.10.1
network 192.168.10.1 mask 255.255.255.255
neighbor 10.15.15.1 remote-as 65111
neighbor 10.16.16.2 remote-as 65222
neighbor 10.16.16.2 next-hop-self
exit
--------------
R11
hostname R11
interface eth0/0
ip address 10.16.16.2 255.255.255.252
no sh
exit
int loo0
ip add 192.168.20.1 255.255.255.255
exit
router bgp 65222
bgp router-id 192.168.20.1
network 192.168.20.1 mask 255.255.255.255
neighbor 10.16.16.1 remote-as 65222
neighbor 10.16.16.1 soft-reconfiguration inbound
exit
VERIFIKASI (sh ip rouete)
Catatan:
arti dari command ini di aktifkan di R11 : neighbor 10.16.16.1 soft-reconfiguration adalah untuk melihat prefix yg datang dari router neighbor (ruter tetangga). Cara verifkasinya adalah:
R11#sh ip bgp neighbors 10.16.16.1 received-routes
Network Next Hop Metric LocPrf Weight Path
*>i 11.11.11.0/30 10.16.16.1 20 100 0 65111 ?
*>i 12.12.12.0/30 10.16.16.1 1 100 0 65111 ?
*>i 13.13.13.0/30 10.16.16.1 0 100 0 65111 ?
*>i 14.14.14.0/30 10.16.16.1 0 100 0 65111 ?
*>i 40.1.3.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.4.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.5.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.6.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.7.1/32 10.16.16.1 11 100 0 65111 ?
*>i 192.168.10.1/32 10.16.16.1 0 100 0 i
-------------------------sukses------------------------------
R11#sh ip bgp neighbors 10.16.16.1 received-routes
Network Next Hop Metric LocPrf Weight Path
*>i 11.11.11.0/30 10.16.16.1 20 100 0 65111 ?
*>i 12.12.12.0/30 10.16.16.1 1 100 0 65111 ?
*>i 13.13.13.0/30 10.16.16.1 0 100 0 65111 ?
*>i 14.14.14.0/30 10.16.16.1 0 100 0 65111 ?
*>i 40.1.3.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.4.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.5.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.6.1/32 10.16.16.1 11 100 0 65111 ?
*>i 40.1.7.1/32 10.16.16.1 11 100 0 65111 ?
*>i 192.168.10.1/32 10.16.16.1 0 100 0 i
-------------------------sukses------------------------------
Posting Komentar untuk "Cisco | Distribute - Prefix-List - OSPF-to-BGP"