Cisco | BGP Redistribution
Konfigurasi masing-masing router
Router R1
hostname R1
interface Loopback0
ip address 192.168.1.1 255.255.255.255
!
interface GigabitEthernet0/0
ip address 10.10.10.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 100
bgp log-neighbor-changes
network 192.168.1.1 mask 255.255.255.255
neighbor 10.10.10.1 remote-as 50
exi
Router R3
hostname R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 192.168.1.2 255.255.255.255
!
interface GigabitEthernet0/0
ip address 10.10.10.1 255.255.255.252
no shut
exit
!
interface GigabitEthernet0/1
ip address 12.12.12.1 255.255.255.252
no shut
exit
router ospf 3
redistribute bgp 50 subnets
network 12.12.12.1 0.0.0.0 area 0
!
router bgp 50
bgp log-neighbor-changes
redistribute ospf 3 route-map REDISTRIBUTE-OSPF-BGP
neighbor 10.10.10.2 remote-as 100
neighbor 13.13.13.1 remote-as 50
neighbor 13.13.13.1 next-hop-self
!
route-map REDISTRIBUTE-OSPF-BGP permit 10
match ip address 2
exit
Router -OSPF
hostname R-OSPF
interface GigabitEthernet0/0
ip address 12.12.12.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 13.13.13.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router ospf 100
network 12.12.12.2 0.0.0.0 area 0
network 13.13.13.2 0.0.0.0 area 0
!
router ospf 10
network 12.12.12.2 0.0.0.0 area 0
network 13.13.13.0 0.0.0.0 area 0
exit
Router 4
hostname R4
interface Loopback1
ip address 192.168.2.2 255.255.255.255
!
interface GigabitEthernet0/0
ip address 100.100.100.1 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 13.13.13.1 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router ospf 4
redistribute connected subnets
network 13.13.13.1 0.0.0.0 area 0
!
router bgp 50
bgp log-neighbor-changes
neighbor 12.12.12.1 remote-as 50
neighbor 12.12.12.1 next-hop-self
neighbor 100.100.100.2 remote-as 200
exit
Router R2
hostname R2
interface Loopback0
ip address 192.168.2.1 255.255.255.255
!
interface GigabitEthernet0/0
ip address 100.100.100.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
router bgp 200
bgp log-neighbor-changes
network 192.168.2.1 mask 255.255.255.255
neighbor 100.100.100.1 remote-as 50
exit
Posting Komentar untuk "Cisco | BGP Redistribution"