Friday, October 5, 2007

Load Balancing with eBGP Multihop

Now here I show about Load Balancing 2 or more link with BGP. BGP need to configure is use eBGP multihop keyword.

What is eBGP multihop use ?
>> eBGP multihop use establish 2 BGP peer not direct connected that mean TTL value is more than 1, we can use scenario I-BGP (same AS number) or E-BGP (different AS number) to use eBGP multihop.

How between BGP peer not direct connected can communicate use TCP 179 ?
>> we need IGP to carry TCP 179 between BGP peer.

Let's look at this example.
This scenario :
o R1 & R2 establish BGP peer with different AS number
o BGP peer use loopback interface
o use static route to communicate with BGP neighbor
o between R1 & R2 use 2 link serial interface so to communicate with BGP neighbor can load balancing use these link

R1#
interface Serial1/1
ip address 10.1.1.1 255.255.255.252
end

interface Serial1/2
ip address 10.1.2.1 255.255.255.252
end

interface Loopback0
ip address 1.1.1.1 255.255.255.255
end

ip route 2.2.2.2 255.255.255.255 10.1.1.2
ip route 2.2.2.2 255.255.255.255 10.1.2.2

router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 ebgp-multihop 3
neighbor 2.2.2.2 update-source Loopback0
no auto-summary

R2#
interface Serial1/1
ip address 10.1.1.2 255.255.255.252
end

interface Serial1/2
ip address 10.1.2.2 255.255.255.252
end

interface Loopback0
ip address 2.2.2.2 255.255.255.255
end

ip route 1.1.1.1 255.255.255.255 10.1.1.1
ip route 1.1.1.1 255.255.255.255 10.1.2.1

router bgp 2
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 ebgp-multihop 3
neighbor 1.1.1.1 update-source Loopback0
no auto-summary

R1#sh ip ro 2.2.2.2
Routing entry for 2.2.2.2/32
Known via "static", distance 1, metric 0
Routing Descriptor Blocks:
* 10.1.1.2
Route metric is 0, traffic share count is 1
10.1.2.2
Route metric is 0, traffic share count is 1

R1#sh ip bgp sum
BGP router identifier 1.1.1.1, local AS number 1
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 2 7 7 1 0 0 00:03:37 0

Monday, October 1, 2007

EtherChannel to Increase Link Capacity

Here example configure to increase link capacity use Ethernet interface is EtherChannel. Every ethernet interface configure use 'channe-group'.

SW1
interface FastEthernet0/1  
channel-group 1 mode on
!
interface FastEthernet0/2
channel-group 1 mode on
!
interface FastEthernet0/3
channel-group 1 mode on
!
interface Port-channel1
switchport mode dynamic desirable

SW2
interface FastEthernet0/1  
channel-group 1 mode on
!
interface FastEthernet0/2
channel-group 1 mode on
!
interface FastEthernet0/3
channel-group 1 mode on
!
interface Port-channel1
switchport mode dynamic desirable

Sunday, September 30, 2007

Combine Serial Interface to Increase Link Capacity

Yesterday I mention about example to increase link capacity. Now I give example configuration about it with two Serial interface. Other way we can use Ethernet interface is EtherChannel.

Combine two Serial interface with a new logical interface is Multilink. The IP address attach in Multilink interface.

config
R2#sh run int multilink 1
interface Multilink1
ip address 192.168.0.2 255.255.255.252
ppp multilink
multilink-group 1
end

R2#sh run int serial 1/1
interface Serial1/1
no ip address
encapsulation ppp
serial restart_delay 0
ppp multilink
multilink-group 1
end

R2#sh run int serial 1/2
interface Serial1/2
no ip address
encapsulation ppp
serial restart_delay 0
ppp multilink
multilink-group 1
end

Monitor & Verify
R2#sh int multilink 1
Multilink1 is up, line protocol is up
Hardware is multilink group interface
Internet address is 192.168.0.2/30
MTU 1500 bytes, BW 3088 Kbit, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open, multilink Open
Open: CDPCP, IPCP, loopback not set
DTR is pulsed for 2 seconds on reset
Last input 00:00:37, output never, output hang never
Last clearing of "show interface" counters 00:01:38
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
8 packets input, 866 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
10 packets output, 876 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions

R2#sh int s1/1
Serial1/1 is up, line protocol is up
Hardware is M4T
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open, multilink Open, crc 16, loopback not set
Restart-Delay is 0 secs
Last input 00:00:42, output 00:00:09, output hang never
Last clearing of "show interface" counters 00:01:22
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair [suspended, using FIFO]
FIFO output queue 0/40, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
30 packets input, 1722 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
27 packets output, 769 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R2#sh ppp ?
bap BAP parameters and statistics
mppe MPPE statistics
multilink Multilink PPP bundle information
queues Event Manager request queues

R2#sh ppp multilink l?
% Unrecognized command
R2#sh ppp multilink ?
interface Show information for this MLP bundle only
| Output modifiers


R2#sh ppp multilink

Multilink1, bundle name is R1
Bundle up for 00:01:25, 1/255 load
Receive buffer limit 24384 bytes, frag timeout 1000 ms
0/0 fragments/bytes in reassembly list
0 lost fragments, 0 reordered
0/0 discarded fragments/bytes, 0 lost received
0xC received sequence, 0xC sent sequence
Member links: 2 active, 0 inactive (max not set, min not set)
Se1/1, since 00:01:29
Se1/2, since 00:01:14