BGP Routing Protocol Overview

BGP Routing Protocol Overview

Hi ! Today i will discuss about BGP Routing Protocol Overview. BGP is an Border gateway protocol, BGP mainly use for connect between different networks. It is the protocol used between Internet service providers (ISPs) and also can be used between an Enterprise and an ISP. BGP was built for reliability, scalability, and control. [boxads]

  • BGP stands for Border Gateway Protocol. Routers running BGP are termed BGP speakers.
  • BGP uses the concept of autonomous systems (AS). An autonomous system is a group of networks under a common administration. The Internet Assigned Numbers Authority (IANA) assigns AS numbers: 1 to 64511 are public AS numbers and 64512 to 65535 are private AS numbers.
  • Autonomous systems run Interior Gateway Protocols (IGP) within the system. They run an Exterior Gateway Protocol (EGP) between them. BGP version 4 is the only EGP currently in use.
  • Routing between autonomous systems is called interdomain routing.
  • The administrative distance for EBGP routes is 20. The administrative distance for IBGP routes is 200.
  • BGP neighbors are called peers and must be statically configured.
  • BGP uses TCP port 179. BGP peers exchange incremental, triggered route updates and periodic keepalives.
  • Routers can run only one instance of BGP at a time.
  • BGP is a path-vector protocol. Its route to a network consists of a list of autonomous systems on the path to that network.
  • BGP’s loop prevention mechanism is an autonomous system number. When an update about a network leaves an autonomous system, that autonomous system’s number is prepended to the list of autonomous systems that have handled that update. When an autonomous system receives an update, it examines the autonomous system list. If it finds its own autonomous system number in that list, the update is discarded.

BGP Databases

BGP uses three databases. The first two listed are BGP-specific; the third is shared by all routing processes on the router:

  • Neighbor database: A list of all configured BGP neighbors. To view it, use the show ip bgp summary command.
  • BGP database, or RIB (Routing Information Base): A list of networks known by BGP, along with their paths and attributes. To view it, use the show ip bgp command.
  • Routing table: A list of the paths to each network used by the router, and the next hop for each network. To view it, use the show ip route command.

BGP Message Types

BGP has four types of messages:

  • 1) Open: After a neighbor is configured, BGP sends an open message to try to establish peering with that neighbor. Includes information such as autonomous system number, router ID, and hold time.
  • 2) Update: Message used to transfer routing information between peers. Includes new routes, withdrawn routes, and path attributes.
  • 3) Notification: When a problem occurs that causes a router to end the BGP peering session, a notification message is sent to the BGP neighbor and the connection is closed.
  • 4) Keepalive: BGP peers exchange keepalive messages every 60 seconds by default. These keep the peering session active.
  • ROUTE-REFRESH: An optional message (negotiated during capability advertisement) that is sent to request dynamic BGP route updates from the Adj-RIB-Out table of a remote BGP speaker

Read more

OSPF Load Balancing Example

OSPF Load Balancing:

[boxads] Today I will show how to configure OSPF load balancing, If we follow bellow example we see a client is connected through two WAN connections with two broadband routers that both are use for Internet routing. We will enable and disable OSPF load balancing packets that are sourcing from the HOST to the WEB SERVER.   Following the diagram:

OSPF Load Balancing Tutorial
OSPF Load Balancing Tutorial

Now lets go our OSPF Load Balancing Configuration part………..

Router R1:

R1#
R1#conf t
R1(config)#ip cef
R1(config)#int loopback 0
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#ip ospf network point-to-point
R1(config-if)#exit

Read more

NAT PAT Configuration Packet Tracer

NAT PAT Configuration Packet Tracer

Today i will discuss how to configure NAT PAT Configuration Packet Tracer simulator. Network address translation (NAT) is the process of modifying IP address information in IP packet headers while in transit across a traffic routing device. [boxads]

There are two different types of NAT:

 

  • NAT
    • Static NAT: The simplest type of NAT provides a one-to-one translation of IP addresses. It is often also referred to as one-to-one NAT. In this type of NAT only the IP addresses, IP header checksum and any higher level checksums that include the IP address need to be changed. The rest of the packet can be left untouched (at least for basic TCP/UDP functionality, some higher level protocols may need further translation). Basic NATs can be used when there is a requirement to interconnect two IP networks with incompatible addressing. With static NAT, translations exist in the NAT translation table as soon as you configure static NAT command(s), and they remain in the translation table until you delete the static NAT command(s).
    • Dynamic NAT: Dynamic NAT has some similarities and differences compared to static NAT. Like static NAT, the NAT router creates a one-to-one mapping between an inside local and inside global address and changes the IP addresses in packets as they exit and enter the inside network. However, the mapping of an inside local address to an inside global address happens dynamically. Dynamic NAT sets up a pool of possible inside global addresses and defines matching criteria to determine which inside local IP addresses should be translated with NAT. The dynamic entry stays in the table as long as traffic flows occasionally. With dynamic NAT, translations do not exist in the NAT table until the router receives traffic that requires translation. Dynamic translations have a timeout period after which they are purged from the translation table.
  • PAT
    • Static PAT: Static PAT translations allow a specific UDP or TCP port on a global address to be translated to a specific port on a local address. Static PAT is the same as static NAT, except that it enables you to specify the protocol (TCP or UDP) and port for the real and mapped addresses. Static PAT enables you to identify the same mapped address across many different static statements, provided that the port is different for each statement. You cannot use the same mapped address for multiple static NAT statements. With static PAT, translations exist in the NAT translation table as soon as you configure static PAT command(s), and they remain in the translation table until you delete the static PAT command(s).
    • NAT Overload or PAT: It is common to hide an entire IP address space, usually consisting of private IP addresses, behind a single IP address (or in some cases a small group of IP addresses) in another (usually public) address space. This type of NAT is called PAT in overload. The dynamic entry stays in the table as long as traffic flows occasionally. With PAT in overload, translations do not exist in the NAT table until the router receives traffic that requires translation. Translations have a timeout period after which they are purged from the translation table.

NAT PAT Configuration Packet Tracer Example #1: Static Source NAT

  • How to translate the 172.16.0.5 IP address to the 10.16.0.5 ip address.
NAT PAT Configuration Packet Tracer
NAT PAT Configuration Packet Tracer

Define the ip nat inside:
Router(config)#interface fa0/0
Router(config-if)#ip nat inside

Read more

Cisco ROMmon Recovery Procedure

Cisco ROMmon Recovery Procedure:

Today i will discuss cisco rommon recovery procedure step by step. so lets go………..

1. Start the TFTP server (make sure the file path is correct and that you allow both transfer and receive)
2.  Connect to the router via Ethernet cable (an Ethernet cable is preferred due to the large size of the file and the maximum speed that data can travel over the console cable) [boxads]

N.B:  Before the IOS is loaded it is important to make sure that your router has enough memory to support the IOS. The router will allow an IOS to be loaded even if there is not enough memory, in this case a smaller IOS will have to be loaded.

3.   At the rommon prompt enter the following commands (commands are case sensitive, and the use of the directional arrows and tab auto complete function is not allowed):

IP_ADDRESS=IP address of the Ethernet port
IP_SUBNET_MASK=subnet mask of the Ethernet port
DEFAULT_GATEWAY=the default gateway
TFTP_SERVER=the IP of the TFTP server (your local computer)
TFTP_FILE=the file name of the IOS file
tftpdnld

4.   The router will then issue a warning message:

Read more

Initial configuration of CISCO Router

Initial configuration of CISCO Router:

Initial configuration of CISCO Router:
At first power on your router & connect console cable to router console port. then use bellow command [boxads]

Router>enable
Router#conf t
Router(config)#

Now copy and past below command after change [xxxxxxx] this portion as your requirement.

hostname Router_Name

enable secret xxxxxxx

username xxxxxx privilege 15 secret xxxxxxxx
username xxxxxx privilege 3 secret xxxxxxx

interface FastEthernet0/0
des ” Local OM Interface”
ip address 1.1.1.1 255.255.255.0
no shutdown
full-duplex
exit

Read more

Initial Configuration CISCO Router

Initial configuration CISCO Router:

At first power on your router & connect console cable to router console port. then use bellow command……………… [boxads]

Router>enable
Router#conf t
Router(config)#

Now copy and past below command after change [xxxxxxx] this portion as your requirement.

hostname Router_Name

enable secret xxxxxxx

username xxxxxx privilege 15 secret xxxxxxxx
username xxxxxx privilege 3 secret xxxxxxx

interface FastEthernet0/0
des ” Local OM Interface”
ip address 1.1.x.x 255.255.x.x
no shutdown
full-duplex
exit

Read more