Sie sind auf Seite 1von 7

Lab 4: IXP Bi-lateral Peering

IXP Bilateral Peering : Each ISP starts BGP peering with all others
R1 Configuration
Step 1. Configuring IP Address (Link to IXP Switch)

R1(config)# int fa0/1


R1(config-if)# ip address 100.100.100.1 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP


R1(config)# router bgp 1
R1(config-router)# neighbor 100.100.100.2 remote-as 2
R1(config-router)# neighbor 100.100.100.3 remote-as 3
R1(config-router)# neighbor 100.100.100.4 remote-as 4
R1(config-router)# neighbor 100.100.100.5 remote-as 5
R1(config-router)# neighbor 100.100.100.6 remote-as 6

(10) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009
R2 Configuration
Step 1. Configuring IP Address (Link to IXP Switch)

R2(config)# int fa0/1


R2(config-if)# ip address 100.100.100.2 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP


R2(config)# router bgp 2
R2(config-router)# neighbor 100.100.100.1 remote-as 1
R2(config-router)# neighbor 100.100.100.3 remote-as 3
R2(config-router)# neighbor 100.100.100.4 remote-as 4
R2(config-router)# neighbor 100.100.100.5 remote-as 5
R2(config-router)# neighbor 100.100.100.6 remote-as 6

R3 Configuration
Step 1. Configuring IP Address (Link to IXP Switch)

R3(config)# int fa0/1


R3(config-if)# ip address 100.100.100.3 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP


R3(config)# router bgp 3
R3(config-router)# neighbor 100.100.100.1 remote-as 1
R3(config-router)# neighbor 100.100.100.2 remote-as 2
R3(config-router)# neighbor 100.100.100.4 remote-as 4
R3(config-router)# neighbor 100.100.100.5 remote-as 5
R3(config-router)# neighbor 100.100.100.6 remote-as 6

R4 Configuration
Step 1. Configuring IP Address (Link to IXP Switch)

R4(config)# int fa0/1


R4(config-if)# ip address 100.100.100.4 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP


R4(config)# router bgp 4
R4(config-router)# neighbor 100.100.100.1 remote-as 1
R4(config-router)# neighbor 100.100.100.2 remote-as 2
R4(config-router)# neighbor 100.100.100.3 remote-as 3
R4(config-router)# neighbor 100.100.100.5 remote-as 5
R4(config-router)# neighbor 100.100.100.6 remote-as 6

(11) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009
R5 Configuration
Step 1. Configuring IP Address (Link to IXP Switch)

R5(config)# int fa0/1


R5(config-if)# ip address 100.100.100.5 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP


R5(config)# router bgp 5
R5(config-router)# neighbor 100.100.100.1 remote-as 1
R5(config-router)# neighbor 100.100.100.2 remote-as 2
R5(config-router)# neighbor 100.100.100.3 remote-as 3
R5(config-router)# neighbor 100.100.100.4 remote-as 4
R5(config-router)# neighbor 100.100.100.6 remote-as 6

R6 Configuration
Step 1. Configuring IP Address (Link to IXP Switch)

R6(config)# int fa0/1


R6(config-if)# ip address 100.100.100.6 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP


R6(config)# router bgp 6
R6(config-router)# neighbor 100.100.100.1 remote-as 1
R6(config-router)# neighbor 100.100.100.2 remote-as 2
R6(config-router)# neighbor 100.100.100.3 remote-as 3
R6(config-router)# neighbor 100.100.100.4 remote-as 4
R6(config-router)# neighbor 100.100.100.5 remote-as 5

IXP Switch Configuration


No configuration needed, default configuration is enough.

Verification

R1,2,3,4,5,6,7,8# sh ip bgp summary


R1,2,3,4,5,6,7,8# sh ip bgp
R1,2,3,4,5,6,7,8# sh ip route

BGP Peering is done, what’s next ………


You Must Provide Local Content ……………
(Game Online, Local Hosting, News Portal, Forum, File Sharing etc)

(12) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009
Step 1. Configure IP Address on Router R1 (Link to Online Game Server )

R1(config)# int fa0/2


R1(config-if)# ip address 11.11.11.1 255.255.255.0

Step 2. Configure PC Game Server with this configuration


§ IP Address : 11.11.11.11
§ Netmask : 255.255.255.0
§ Gateway : 11.11.11.1

Step 3. Advertise network server into BGP

R1(config)# router bgp 1


R1(config-router)# network 11.11.11.0 mask 255.255.255.0

Test PING from all of ISP Router …………

R1,2,3,4,5,6# ping 11.11.11.11

(13) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009
Lab 5: IXP Multilateral Peering

IXP multilateral peering : Each ISP starts BGP peering with a route server

R “x” Configuration à Change “ x “ with your pod number


Step 1. Remove BGP Configuration used before

Rx(config)# no router bgp x

Step 2. Configuring BGP Peers to Route Collector

Rx(config)# router bgp x


Rx(config-router)# neighbor 100.100.100.100 remote-as 100

(14) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009
Route Collector Configuration
Step 1. Configure IP Address (Link to IXP Switch)

R.Collector(config)# int fa0/1


R.Collector(config-if)# ip address 100.100.100.100 255.255.255.0

Step 2. Configuring BGP Peers to all of ISP

R.Collector(config)# router bgp 100


R.Collector(config-router)# neighbor 100.100.100.1 remote-as 1
R.Collector(config-router)# neighbor 100.100.100.2 remote-as 2
R.Collector(config-router)# neighbor 100.100.100.3 remote-as 3
R.Collector(config-router)# neighbor 100.100.100.4 remote-as 4
R.Collector(config-router)# neighbor 100.100.100.5 remote-as 5
R.Collector(config-router)# neighbor 100.100.100.6 remote-as 6

Verification

R1,2,3,4,5,6# sh ip bgp summary


R1,2,3,4,5,6# sh ip bgp
R1,2,3,4,5,6# sh ip route
R1,2,3,4,5,6# ping 11.11.11.11

(15) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009
BGP Route Filtering
Step 1. Defines filter to
§ Outbond Filtering : Allow your routes, deny others.
R1(config)# ip pefix-list R1-ROUTES seq 5 permit 11.11.11.0/24

§ Inbound Filtering: Deny RFC1918, 127.0.0.0, and other bogus nets; allow others
Rx(config)# ip prefix-list NO-BOGONS seq 5 deny 127.0.0.0/8 le 32
Rx(config)# ip prefix-list NO-BOGONS seq 10 deny 0.0.0.0/8 le 32
Rx(config)# ip prefix-list NO-BOGONS seq 15 deny 10.0.0.0/8 le 32
Rx(config)# ip prefix-list NO-BOGONS seq 20 deny 172.16.0.0/12 le 32
Rx(config)# ip prefix-list NO-BOGONS seq 25 deny 192.168.0.0/16 le 32
! ... add more lines here for other bogus nets you might know about
Rx(config)# ip prefix-list NO-BOGONS seq 1000 permit 0.0.0.0/0 le 24

Step 2. Apply filtering into BGP

For each peer at the exchange point, add bgp “neighbor” commands to talk to them. In
each case, use an outgoung filter that allows your routes and denies others, and use an
incoming filter that allows that particular peer's routes and denies others.

R1(config)# router bgp 1


R1(config-router)# neighbor 100.100.100.100 prefix-list MY-ROUTES out
R1(config-router)# neighbor 100.100.100.100 prefix-list NO-BOGONS in

If you have any questions please feel free to contact me at


gdedi@prawedanet.co.id - aldedi@yahoo.com – Yahoo Messenger id : aldedi

(16) Internet Exchange Workshop & Field Trip in Indonesia, October 5th-6th, 2009