Sei sulla pagina 1di 18

BGP Training

Lab
Johnson P Li u
Staff Engi neer
8/23/2013
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc.
1
Bullet Slide Layout
Lab Topology
Routers initial configurations
R1 initial config
R2 initial config
R3 initial config
R4 initial config
Lab objective
1. Setup EBGP between AS100 AS200
2. Setup IBGP between R1-R2 and R3-R4
3. Announce BGP Network in R1(AS100) and R3(AS200)
4. Add a R5 into AS200(enable OSPF, BGP)
5. Config R3-R5 IBGP and enable R3 as a Route Reflector(RR) in
AS200

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Topology
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Routers initial configurations
All routers interface has configured
IP(including loopback0))
All routers interface has enable IGP(OSPF)
and inside each AS
passive-interface was configured in R1 and R3
to prevent OSPF exchange across different AS)

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
R1 initial config
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 172.16.13.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.12.1 255.255.255.252
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
passive-interface FastEthernet0/0
network 1.1.1.1 0.0.0.0 area 0
network 172.16.12.0 0.0.0.3 area 0
network 172.16.13.0 0.0.0.3 area 0
!

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
R2 initial config
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 172.16.12.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 172.16.12.0 0.0.0.3 area 0
!
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
R3 initial config
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 172.16.13.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.34.1 255.255.255.252
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
passive-interface FastEthernet0/0
network 3.3.3.3 0.0.0.0 area 0
network 172.16.13.0 0.0.0.3 area 0
network 172.16.34.0 0.0.0.3 area 0
!
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
R4 initial config
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
ip address 172.16.34.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 172.16.34.0 0.0.0.3 area 0
!
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 1
Setup EBGP between AS100 AS200

R1#conf t
R1(config)#router bgp 100
R1(config-router)#no synchronization
R1(config-router)#neighbor 172.16.13.2 remote-as 200
R1(config-router)#^Z
R1#show ip bgp summary

R3#conf t
R3(config)#router bgp 200
R3(config-router)#no synchronization
R3(config-router)#neighbor 172.16.13.1 remote-as 100
R3(config-router)#^Z
R3#show ip bgp summary

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 2 (1/2)
Setup IBGP between R1-R2 and R3-R4

R1#conf t
R1(config)#router bgp 100
R1(config-router)#neighbor 2.2.2.2 remote-as 100
R1(config-router)#neighbor 2.2.2.2 update-source loopback0
R1(config-router)#^Z
R1#show ip bgp summary

R2#conf t
R2(config)#router bgp 100
R2(config-router)#no synchronization
R2(config-router)#neighbor 1.1.1.1 remote-as 100
R2(config-router)#neighbor 1.1.1.1 update-source loopback0
R2(config-router)#^Z
R2#show ip bgp summary

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 2 (2/2)
Setup IBGP between R3-R4

R3#conf t
R3(config)#router bgp 200
R3(config-router)#neighbor 4.4.4.4 remote-as 200
R3(config-router)#neighbor 4.4.4.4 update-source loopback0
R3(config-router)#^Z
R3#show ip bgp summary

R4#conf t
R4(config)#router bgp 200
R4(config-router)#no synchronization
R4(config-router)#neighbor 3.3.3.3 remote-as 200
R4(config-router)#neighbor 3.3.3.3 update-source loopback0
R4(config-router)#^Z
R4#show ip bgp summary

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 3 (1/2)
Announce BGP Network in R1(AS100)

R1#conf t
R1(config)#router bgp 100
R1(config-router)#network 100.100.100.0 mask 255.255.255.0
R1(config-router)#network 100.100.101.0 mask 255.255.255.0
R1(config-router)#network 100.100.102.0 mask 255.255.255.0
R1(config-router)#network 100.100.103.0 mask 255.255.255.0
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
R1(config-router)#network 2.2.2.2 mask 255.255.255.255
R1(config-router)#exit
R1(config)#ip route 100.100.100.0 255.255.255.0 null0
R1(config)#ip route 100.100.101.0 255.255.255.0 null0
R1(config)#ip route 100.100.102.0 255.255.255.0 null0
R1(config)#ip route 100.100.103.0 255.255.255.0 null0

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 3 (2/2)
Announce BGP Network in R3(AS200)

R3#conf t
R3(config)#router bgp 200
R3(config-router)#network 200.200.200.0 mask 255.255.255.0
R3(config-router)#network 200.200.201.0 mask 255.255.255.0
R3(config-router)#network 200.200.202.0 mask 255.255.255.0
R3(config-router)#network 200.200.203.0 mask 255.255.255.0
R3(config-router)#network 3.3.3.3 mask 255.255.255.255
R3(config-router)#network 4.4.4.4 mask 255.255.255.255
R3(config-router)#exit
R3(config)#ip route 200.200.200.0 255.255.255.0 null0
R3(config)#ip route 200.200.201.0 255.255.255.0 null0
R3(config)#ip route 200.200.202.0 255.255.255.0 null0
R3(config)#ip route 200.200.203.0 255.255.255.0 null0

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 4 (1/3)
Add a R5 into AS200
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 4 (2/3)
Add a R5 into AS200
8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 4 (3/3)
Add a R5 into AS200(enable OSPF, BGP)

R5#conf t
R5(config)#int loopback0
R5(config-if)#ip address 5.5.5.5 255.255.255.255
R5(config-if)#int f0/0
R5(config-if)#ip address 172.16.45.2 255.255.255.252
R5(config-if)#no shutdown
R5(config-if)#router ospf 1
R5(config-router)#network 5.5.5.5 0.0.0.0 area 0
R5(config-router)#network 172.16.45.0 0.0.0.3 area 0
R5(config-router)#router bgp 200
R5(config-router)#no synchronization

R4#conf t
R4(config-if)#int f0/1
R4(config-if)#ip address 172.16.45.1 255.255.255.252
R4(config-if)#no shutdown
R4(config-if)#router ospf 1
R4(config-router)#network 172.16.45.0 0.0.0.3 area 0

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Lab Objective 5
Config R3-R5 IBGP and enable R3 as a Route Reflector(RR) in
AS200

R5(config)#router bgp 200
R5(config-router)#neighbor 3.3.3.3 remote-as 200
R5(config-router)#neighbor 3.3.3.3 update-source loopback0

R3(config)#router bgp 200
R3(config-router)#neighbor 5.5.5.5 remote-as 200
R3(config-router)#neighbor 5.5.5.5 update-source loopback0

R3(config-router)#neighbor 4.4.4.4 route-reflector-client
R3(config-router)#neighbor 5.5.5.5 route-reflector-client

8/23/2013 Confidential | Copyright 2013 TrendMicro Inc. 2
Thank You

Potrebbero piacerti anche