Configuration and Analysis of OSPF and iBGP With Route Reflectors
Configuration and Analysis of OSPF and iBGP With Route Reflectors
Objective:
To gain a comprehensive understanding of the OSPF and iBGP routing
protocols.
To learn how to configure OSPF and iBGP within a network topology.
To understand the importance of implementing a Route Reflector (RR).
Introduction:
In this task, we first established a topology with 8 routers, including 4 PE and 4 P
routers, to set up OSPF. We began by configuring loopback addresses on all routers
and assigning IP addresses to all interfaces. Following this, we configured OSPF,
ensuring that all networks connected to each router, including the loopback
networks, were declared. Initially, routers that were not directly connected could
not communicate. However, once OSPF was configured, connectivity between
these routers was achieved.
To configure iBGP, we then introduced two additional routers as Route Reflectors.
In iBGP, routes learned from an eBGP router are only shared with other eBGP
routers due to the split-horizon rule, which is designed to prevent routing loops.
While one solution to this limitation is to establish full mesh connectivity, this
approach can be challenging in large networks. The Route Reflector was used to
address this issue effectively.
Network Topology:
Key Steps:
Assign IP addresses to all router interfaces.
Configure a loopback address on each router.
Set up OSPF on all routers.
Verify the neighbor table and ensure connectivity between routers.
Add two Route Reflector routers and repeat steps 1-4.
Configure iBGP on all routers, designating RR1 and RR2 as route reflector
clients.
Advertise networks from select routers and verify reachability across all
routers.
Theory:
Working Procedure:
1. Assign IP Addresses to All Router Interfaces: Initially, a Gigabit Ethernet
interface is chosen for its high-speed data transmission capabilities, which
supports up to 1 Gbps. To configure the interface, an IP address and a subnet
mask are assigned to it. For point-to-point connections, a /30 subnet mask is
typically used, which provides a total of 4 IP addresses: 1 network address, 1
broadcast address, and 2 usable addresses. This subnet mask is ideal for such
connections as it efficiently utilizes IP address space by ensuring that only
the two directly connected devices need addresses. By employing a /30
subnet, network configuration is simplified, reducing broadcast traffic and
conserving IP resources.
OSPF neighborship is created when two routers with OSPF enabled on their
interfaces share the same area ID, network type, subnet, and have
compatible OSPF settings such as hello and dead intervals. The process
begins when routers exchange hello packets on their connected interfaces. If
the routers agree on key parameters, they proceed to establish a two-way
communication, during which they exchange more detailed information
about their OSPF state and routing tables. Once this exchange is complete,
the routers form an adjacency, allowing them to synchronize their link-state
databases and share routing information, thus creating a stable OSPF
neighborship.
OSPF routing's path manipulation involves adjusting the cost metrics or
modifying certain OSPF attributes to influence the selection of routes within
the network. By default, OSPF selects the path with the lowest cost as the
best route. However, network administrators can manipulate these paths to
achieve specific routing objectives, such as load balancing, traffic
engineering, or redundancy. One common method of path manipulation is
altering the interface cost. By manually adjusting the cost of an OSPF-
enabled interface, administrators can make certain paths more or less
preferable. For example, increasing the cost on a specific interface makes
OSPF consider that path as less desirable, potentially diverting traffic to an
alternative route. To set the interface cost in OSPF, the ip ospf cost command
is used. This command is configured on the interface level and allows to
manually specify the cost of an OSPF interface. Here’s the syntax for the
command:
[Router]# interface [interface-type] [interface-number]
[Router-interface]# ip ospf cost [cost]
Two route reflector routers are added in a network to simplify BGP (Border
Gateway Protocol) route distribution and reduce the number of required
BGP peering sessions. In large BGP networks, especially with many routers,
establishing a full mesh of peer connections between all routers can be
impractical and resource-intensive. By introducing route reflectors, these
routers can consolidate and redistribute BGP route information to other
routers within the same AS (Autonomous System). This setup reduces the
number of direct peer connections needed and helps manage the complexity
of BGP route propagation, ensuring efficient and scalable route distribution
throughout the network.
The command router bgp 65000 is used to initiate the BGP process on a
router and specify the autonomous system (AS) number for that router. In
this command, 65000 is an example of an AS number assigned to the router,
which identifies the autonomous system to which the router belongs. This
AS number is crucial for BGP operation, as it distinguishes routing
information within and between autonomous systems. By setting up the BGP
process with this AS number, the router is configured to participate in BGP
routing, allowing it to exchange routing information with other BGP routers
both within its own AS (iBGP) and with external ASes (eBGP).
After configuring BGP with route reflectors and client routers, the command
show ip bgp summary is used to verify the status and health of the BGP
peering sessions. This command displays an overview of BGP neighbors,
their states, and various statistics. When the states of the loopback addresses
are shown as "up," it indicates that the BGP peering sessions between the
client routers (R1-R8) and the route reflectors (R9 and R10) have been
successfully established and are operational. The "up" state means that the
BGP routers are actively exchanging routing information, and the BGP
session is stable. This status confirms that the route reflectors are correctly
reflecting routes to the clients and that the BGP configuration is functioning
as intended, allowing for efficient route distribution within the network.
Summary:
In this task, IP addresses are assigned to router interfaces and activated, with a
loopback address configured for stable internal testing. OSPF is implemented to
handle internal routing by defining networks and areas and adjusting path
preferences, while ensuring that routing updates are not advertised back into the
same interface to avoid routing loops, adhering to the split horizon principle. BGP
with route reflectors is employed to manage route distribution efficiently and
minimize peer connections, and iBGP is set up to maintain internal routing
consistency. Route reflector clients are designated, and the configuration is verified
to confirm that routing information is accurately propagated and routing loops are
prevented, ensuring smooth network operation.