This document describes the configuration of a network with Juniper and Cisco routers using OSPF, iBGP with route reflectors, and eBGP. It involves:
1. Configuring OSPF in area 0 between the Juniper and Cisco routers.
2. Configuring the Juniper routers J03 and J04 as iBGP route reflectors to allow the exchange of iBGP routes between the left and right networks.
3. Adding the Cisco routers R1 and R2 as iBGP peers to J03 to learn routes from the left network, and similarly configuring R3 and R4 as iBGP peers to J04 to learn routes from the right network.
This document describes configuring a basic single-area OSPFv2 network. It includes the topology diagram and addressing tables, and steps to build the network, configure OSPF routing on each router with area 0, and verify OSPF neighbor relationships and routing tables. It also provides sample outputs of show commands to check OSPF settings and interfaces.
The document describes a lab that explores EIGRP load balancing capabilities. The objectives are to configure EIGRP on three routers, examine the EIGRP topology table, and verify equal-cost and unequal-cost load balancing. Initial configurations are provided to set up loopback interfaces and serial links between the routers. EIGRP is then enabled on two routers and debugging commands are used to observe route installation.
This document provides a summary of common Linux network tools including ifconfig, netstat, route, ping, traceroute, iptables, netcat, rinetd, tcpdump, and tcpreplay. It describes what each tool is used for at a high level, such as configuring network interfaces, displaying network status, manipulating network routes, testing network connectivity, implementing firewalls, and capturing/replaying network traffic. The document also provides basic introductions to IPv4 and IPv6 addressing and routing concepts.
Cisco CCNA Training/Exam Tips that are helpful for your Certification Exam!
To be Cisco Certified please Check out:
http://asmed.com/information-technology-it/
Policy routing allows packets to be routed based on criteria other than just the destination address. This workshop module implements policy routing to create a specific path for traceroute packets between Router6 and the time server. Access lists, route maps, and set commands are used to configure the policy routing on each router interface along the path. Breaking the connection between two routers causes the path to revert to normal destination-based routing. Proper configuration of OSPF and thorough testing of policy routing implementations are emphasized.
The document describes several EIGRP and OSPF configuration labs focused on routing protocols, including configuring EIGRP parameters like default networks, authentication, and route summarization, as well as OSPF labs on areas, route types, and virtual links. The labs provide instructions for common routing tasks to help readers master EIGRP and OSPF configurations.
This document provides instructions for installing and configuring OpenBTS software to create an open source GSM network. It describes the necessary hardware including a computer, USRP software defined radio, and antennas. It also outlines installing GNU Radio, Boost libraries, and OpenBTS software. The configuration section explains setting parameters such as the mobile country code, network code, frequency band, and channel in the OpenBTS configuration file.
This document describes configuring a basic single-area OSPFv2 network. It includes the topology diagram and addressing tables, and steps to build the network, configure OSPF routing on each router with area 0, and verify OSPF neighbor relationships and routing tables. It also provides sample outputs of show commands to check OSPF settings and interfaces.
The document describes a lab that explores EIGRP load balancing capabilities. The objectives are to configure EIGRP on three routers, examine the EIGRP topology table, and verify equal-cost and unequal-cost load balancing. Initial configurations are provided to set up loopback interfaces and serial links between the routers. EIGRP is then enabled on two routers and debugging commands are used to observe route installation.
This document provides a summary of common Linux network tools including ifconfig, netstat, route, ping, traceroute, iptables, netcat, rinetd, tcpdump, and tcpreplay. It describes what each tool is used for at a high level, such as configuring network interfaces, displaying network status, manipulating network routes, testing network connectivity, implementing firewalls, and capturing/replaying network traffic. The document also provides basic introductions to IPv4 and IPv6 addressing and routing concepts.
Cisco CCNA Training/Exam Tips that are helpful for your Certification Exam!
To be Cisco Certified please Check out:
http://asmed.com/information-technology-it/
Policy routing allows packets to be routed based on criteria other than just the destination address. This workshop module implements policy routing to create a specific path for traceroute packets between Router6 and the time server. Access lists, route maps, and set commands are used to configure the policy routing on each router interface along the path. Breaking the connection between two routers causes the path to revert to normal destination-based routing. Proper configuration of OSPF and thorough testing of policy routing implementations are emphasized.
The document describes several EIGRP and OSPF configuration labs focused on routing protocols, including configuring EIGRP parameters like default networks, authentication, and route summarization, as well as OSPF labs on areas, route types, and virtual links. The labs provide instructions for common routing tasks to help readers master EIGRP and OSPF configurations.
This document provides instructions for installing and configuring OpenBTS software to create an open source GSM network. It describes the necessary hardware including a computer, USRP software defined radio, and antennas. It also outlines installing GNU Radio, Boost libraries, and OpenBTS software. The configuration section explains setting parameters such as the mobile country code, network code, frequency band, and channel in the OpenBTS configuration file.
- Open Shortest Path First (OSPF) is an open standard link-state routing protocol that works with link state advertisements to dynamically calculate the shortest path to destinations. It maintains neighbor, database, and routing tables.
- OSPF uses areas and link state routing to converge quickly and find the shortest paths between routers within an autonomous system. It supports hierarchical routing designs and classless routing.
EIGRP and OSPF are routing protocols. EIGRP uses the DUAL algorithm and metric to select fast, loop-free routes. It supports multiple network layers and rapid convergence. OSPF is an open standard link-state protocol that provides a common network view and calculates the shortest path. It can route between autonomous systems and uses link state updates and SPF algorithm. Configuring OSPF involves assigning networks to areas and defining the routing process. Verification includes checking neighbors, routes, and topology tables.
This document discusses static route configurations using four different router platforms covered in the CCNA exam. It provides configuration steps to create a topology with four subnets and configure static routes on each router to establish connectivity between all networks. Static routes are manually configured on each router with the IP address of the next hop router for each subnet.
This study guide is intended to provide those pursuing the CCNA certification with a framework of what concepts need to be studied. This is not a comprehensive document containing all the secrets of the CCNA, nor is it a “braindump” of questions and answers.
I sincerely hope that this document provides some assistance and clarity in your studies.
Cisco CCNA Training/Exam Tips that are helpful for your Certification Exam!
To be Cisco Certified please Check out:
http://asmed.com/information-technology-it/
This document provides an overview of commonly used router commands organized into the following categories: keyboard shortcuts, configuration, general commands, privileged mode commands, setting passwords, router processes and statistics, IP commands, CDP commands, IPX commands, routing protocols, access lists, WAN configurations, and miscellaneous commands. It includes brief explanations and examples of commands for configuring, monitoring, and troubleshooting a router.
Redistribution is necessary when routing protocols connect and must pass routes between the two.
Route Redistribution involves placing the routes learned from one routing domain, such as RIP, into
another routing domain, such as EIGRP.
While running a single routing protocol throughout your entire IP internetwork is desirable, multiprotocol routing is common for a number of reasons, such as company mergers, multiple departments
managed by multiple network administrators, and multi-vendor environments. Running different
routing protocols is often part of a network design.
This document provides an overview of Raspberry Pi I/O control and sensor reading. It discusses analog and digital signal processing, common sensors interfaces like I2C, SPI and UART. It also covers programming the GPIO, reading analog sensors using the MCP3008 ADC over SPI, and interfacing with digital sensors like the LIS3DH accelerometer over I2C. Code examples are provided to read sensors and display the data.
Complete squid & firewall configuration. plus easy mac bindingChanaka Lasantha
1. The document details the configuration of a transparent SQUID Linux firewall to cache and filter internet traffic for internal clients. Key steps include installing and configuring Squid, setting up IP forwarding, configuring iptables firewall rules, and binding MAC addresses to IP addresses in Squid for access control.
This document summarizes a CDP indicator device created with a Raspberry Pi. The device displays information about connected devices that it receives from CDP packets on its Ethernet interface. It also sends its own device information via CDP. The device uses SCAPY to receive and generate CDP packets. It can be connected to LittleBits Cloudbit devices and controlled via the Cloudbit web API or integrated with other web services using IFTTT.
The document describes how to configure a Linux machine as a router to connect two subnets. It provides instructions to enable IP forwarding and configure the network interfaces using temporary and permanent methods.
The summary is:
- Enable IP forwarding and configure the network interfaces of two Ethernet cards using ifconfig to set up routing temporarily
- Use netconf to configure the interfaces and routing permanently by editing settings, accepting changes, and rebooting to confirm the configuration persists
- Install traffic generator programs on end stations to test routing of UDP and TCP packets between subnets going through the router
Eigrp on a cisco asa firewall configuration3Anetwork com
The document discusses configuring EIGRP routing on a Cisco ASA firewall. It describes setting up interfaces, IP addressing, and EIGRP routing on the ASA and two routers. The ASA separates an internal, DMZ, and external network, and redistributes a default static route into EIGRP. Configuration is verified by showing EIGRP neighbors, routes, and that the routers have learned routes from all connected networks.
The document describes setting up static routes on 7 routers (R1-R7) to allow connectivity between all routers and PCs in a network topology. It involves configuring IP addresses and static routes on each router's interfaces according to the topology diagram, so that each router has a route to every other subnet and can ping all other routers and PCs.
This document discusses using a loopback interface as the update source for BGP sessions. It explains that when there are multiple paths between BGP neighbors, using a loopback interface ensures the BGP session will not go down if the physical interface fails. It provides the configuration to enable this by specifying the loopback interface in the neighbor update-source command. An example topology is shown connecting routers with EIGRP and configuring BGP between the routers using a loopback interface as the update source.
Cisco CCNA/CCNP Training/Exam Tips that are helpful for your Certification Exam!
To be Cisco Certified please Check out:
http://asmed.com/information-technology-it/
The document discusses using EBGP multihop to establish connections between EBGP peers that are not directly connected. It describes configuring the neighbor ebgp-multihop command to allow this, specifying a Time to Live (TTL) value. It then provides interface and static route configurations for routers in two ISPs (ISP1 and ISP2) to establish connectivity. BGP is configured between loopback addresses on each router using the neighbor ebgp-multihop command to allow the multihop connection.
This document contains configurations for routers and switches in a network. Router configurations include interfaces, OSPF, EIGRP, and RIP routing. Switch configurations include VLANs, trunk and access ports, and connections between switches. The network connects multiple locations using tunnels, VLAN trunking, and routing protocols.
This document discusses configuring per-VRF tunnel selection on Cisco IOS-XR. The goal is to direct different VRF traffic (CN and IN) over specific tunnels by modifying the BGP next-hop. A route-policy is used to change the BGP next-hop for certain VRFs and neighbors. Static routes are then configured to map the new next-hops to the appropriate tunnels. After applying the policy and static routes, show commands confirm the different VRF traffic is now using the intended tunnels. The document provides notes on applying the policy and potential backup mechanisms.
1. The document discusses various OSPF concepts including DR-BDR election, OSPF areas, router types, virtual links, and NSSA areas. It provides configuration examples and show command outputs to illustrate these concepts.
The document provides an overview of the Border Gateway Protocol (BGP). It discusses BGP concepts such as autonomous systems, path attributes, and the BGP protocol operation. Key points include that BGP establishes peering sessions to exchange routing information, uses route attributes like AS path, next hop, and communities to determine the best path, and supports techniques like route reflection and confederation to improve scalability in large networks.
Route reflectors allow a transit autonomous system to avoid a full iBGP mesh by acting as a centralized point for iBGP routes. Route reflectors modify the split horizon rules to propagate iBGP learned routes to iBGP peers, eliminating the need for full iBGP mesh. Redundant route reflectors are used to prevent single points of failure. Route reflector clusters are defined to prevent routing loops that could occur with redundant route reflectors.
- Open Shortest Path First (OSPF) is an open standard link-state routing protocol that works with link state advertisements to dynamically calculate the shortest path to destinations. It maintains neighbor, database, and routing tables.
- OSPF uses areas and link state routing to converge quickly and find the shortest paths between routers within an autonomous system. It supports hierarchical routing designs and classless routing.
EIGRP and OSPF are routing protocols. EIGRP uses the DUAL algorithm and metric to select fast, loop-free routes. It supports multiple network layers and rapid convergence. OSPF is an open standard link-state protocol that provides a common network view and calculates the shortest path. It can route between autonomous systems and uses link state updates and SPF algorithm. Configuring OSPF involves assigning networks to areas and defining the routing process. Verification includes checking neighbors, routes, and topology tables.
This document discusses static route configurations using four different router platforms covered in the CCNA exam. It provides configuration steps to create a topology with four subnets and configure static routes on each router to establish connectivity between all networks. Static routes are manually configured on each router with the IP address of the next hop router for each subnet.
This study guide is intended to provide those pursuing the CCNA certification with a framework of what concepts need to be studied. This is not a comprehensive document containing all the secrets of the CCNA, nor is it a “braindump” of questions and answers.
I sincerely hope that this document provides some assistance and clarity in your studies.
Cisco CCNA Training/Exam Tips that are helpful for your Certification Exam!
To be Cisco Certified please Check out:
http://asmed.com/information-technology-it/
This document provides an overview of commonly used router commands organized into the following categories: keyboard shortcuts, configuration, general commands, privileged mode commands, setting passwords, router processes and statistics, IP commands, CDP commands, IPX commands, routing protocols, access lists, WAN configurations, and miscellaneous commands. It includes brief explanations and examples of commands for configuring, monitoring, and troubleshooting a router.
Redistribution is necessary when routing protocols connect and must pass routes between the two.
Route Redistribution involves placing the routes learned from one routing domain, such as RIP, into
another routing domain, such as EIGRP.
While running a single routing protocol throughout your entire IP internetwork is desirable, multiprotocol routing is common for a number of reasons, such as company mergers, multiple departments
managed by multiple network administrators, and multi-vendor environments. Running different
routing protocols is often part of a network design.
This document provides an overview of Raspberry Pi I/O control and sensor reading. It discusses analog and digital signal processing, common sensors interfaces like I2C, SPI and UART. It also covers programming the GPIO, reading analog sensors using the MCP3008 ADC over SPI, and interfacing with digital sensors like the LIS3DH accelerometer over I2C. Code examples are provided to read sensors and display the data.
Complete squid & firewall configuration. plus easy mac bindingChanaka Lasantha
1. The document details the configuration of a transparent SQUID Linux firewall to cache and filter internet traffic for internal clients. Key steps include installing and configuring Squid, setting up IP forwarding, configuring iptables firewall rules, and binding MAC addresses to IP addresses in Squid for access control.
This document summarizes a CDP indicator device created with a Raspberry Pi. The device displays information about connected devices that it receives from CDP packets on its Ethernet interface. It also sends its own device information via CDP. The device uses SCAPY to receive and generate CDP packets. It can be connected to LittleBits Cloudbit devices and controlled via the Cloudbit web API or integrated with other web services using IFTTT.
The document describes how to configure a Linux machine as a router to connect two subnets. It provides instructions to enable IP forwarding and configure the network interfaces using temporary and permanent methods.
The summary is:
- Enable IP forwarding and configure the network interfaces of two Ethernet cards using ifconfig to set up routing temporarily
- Use netconf to configure the interfaces and routing permanently by editing settings, accepting changes, and rebooting to confirm the configuration persists
- Install traffic generator programs on end stations to test routing of UDP and TCP packets between subnets going through the router
Eigrp on a cisco asa firewall configuration3Anetwork com
The document discusses configuring EIGRP routing on a Cisco ASA firewall. It describes setting up interfaces, IP addressing, and EIGRP routing on the ASA and two routers. The ASA separates an internal, DMZ, and external network, and redistributes a default static route into EIGRP. Configuration is verified by showing EIGRP neighbors, routes, and that the routers have learned routes from all connected networks.
The document describes setting up static routes on 7 routers (R1-R7) to allow connectivity between all routers and PCs in a network topology. It involves configuring IP addresses and static routes on each router's interfaces according to the topology diagram, so that each router has a route to every other subnet and can ping all other routers and PCs.
This document discusses using a loopback interface as the update source for BGP sessions. It explains that when there are multiple paths between BGP neighbors, using a loopback interface ensures the BGP session will not go down if the physical interface fails. It provides the configuration to enable this by specifying the loopback interface in the neighbor update-source command. An example topology is shown connecting routers with EIGRP and configuring BGP between the routers using a loopback interface as the update source.
Cisco CCNA/CCNP Training/Exam Tips that are helpful for your Certification Exam!
To be Cisco Certified please Check out:
http://asmed.com/information-technology-it/
The document discusses using EBGP multihop to establish connections between EBGP peers that are not directly connected. It describes configuring the neighbor ebgp-multihop command to allow this, specifying a Time to Live (TTL) value. It then provides interface and static route configurations for routers in two ISPs (ISP1 and ISP2) to establish connectivity. BGP is configured between loopback addresses on each router using the neighbor ebgp-multihop command to allow the multihop connection.
This document contains configurations for routers and switches in a network. Router configurations include interfaces, OSPF, EIGRP, and RIP routing. Switch configurations include VLANs, trunk and access ports, and connections between switches. The network connects multiple locations using tunnels, VLAN trunking, and routing protocols.
This document discusses configuring per-VRF tunnel selection on Cisco IOS-XR. The goal is to direct different VRF traffic (CN and IN) over specific tunnels by modifying the BGP next-hop. A route-policy is used to change the BGP next-hop for certain VRFs and neighbors. Static routes are then configured to map the new next-hops to the appropriate tunnels. After applying the policy and static routes, show commands confirm the different VRF traffic is now using the intended tunnels. The document provides notes on applying the policy and potential backup mechanisms.
1. The document discusses various OSPF concepts including DR-BDR election, OSPF areas, router types, virtual links, and NSSA areas. It provides configuration examples and show command outputs to illustrate these concepts.
The document provides an overview of the Border Gateway Protocol (BGP). It discusses BGP concepts such as autonomous systems, path attributes, and the BGP protocol operation. Key points include that BGP establishes peering sessions to exchange routing information, uses route attributes like AS path, next hop, and communities to determine the best path, and supports techniques like route reflection and confederation to improve scalability in large networks.
Route reflectors allow a transit autonomous system to avoid a full iBGP mesh by acting as a centralized point for iBGP routes. Route reflectors modify the split horizon rules to propagate iBGP learned routes to iBGP peers, eliminating the need for full iBGP mesh. Redundant route reflectors are used to prevent single points of failure. Route reflector clusters are defined to prevent routing loops that could occur with redundant route reflectors.
The document describes the configuration of a Layer 3 VPN network with multiple VRF instances. Key steps include:
1. Configuring IP addresses, loopbacks and OSPF routing between core routers R1 through R5.
2. Establishing iBGP peering between R1, R3, and R5 to exchange VPN routing information.
3. Creating VRF instances VPN-MY on R1 and R3, and VPN-SG on R5, each with a unique RD and RT.
4. Connecting customer edge devices CE6 to R1, CE7 to R3, and CE8 to R5 through interfaces associated with the corresponding VRFs.
5.
The document describes configuring a Juniper firewall filter to block ICMP echo requests from R1 to R2. It recommends applying the filter to interface 20.0.0.8/30 on device J10. The filter drops all ICMP echo requests and allows all other traffic. Applying the filter successfully blocks ping requests from R1 to R2 while allowing other protocols like telnet.
This document provides configuration instructions for setting up MPLS-TE tunnels between routers R1, R2, R3 and R4 to enable traffic engineering. It describes:
1. Configuring OSPF on all routers to support MPLS-TE.
2. Creating explicit paths between routers and configuring MPLS-TE tunnels between them with bandwidth reservations.
3. Enabling IP RSVP on all interfaces to reserve bandwidth for MPLS-TE tunnels and ensure tunnels remain up.
4. Configuring a backup dynamic path for tunnels to provide an alternate route if the primary path fails.
The document provides an overview of the Cisco CRS-1 router. It discusses the router's distributed architecture with multiple line cards and a high-speed fabric. The fabric uses a multi-stage Benes switch design to provide multiple paths between cards. Each line card contains specialized silicon that can process packets at wire speed through independent packet processing engines. The router is designed to scale routing capacity and features through this distributed and programmable hardware architecture.
BGP graceful maintenance allows a router to be taken offline without dropping traffic by advertising routes with a lower preference first. This gives alternate routes time to take over before removing the router. The router's routes are sent with a GSHUT community and lowered attributes, and incoming routes are marked with a GSHUT attribute. Activating graceful maintenance globally or per neighbor lowers preferences. A router should be shut down only after neighboring routers stop sending traffic to allow full network convergence.
Segment Routing allows MPLS labels to be transported within deployed IGPs like OSPF and IS-IS, reducing MPLS complexity. It provides automated 50ms link and node protection for any topology or IGP metric. The goal is to allow applications to request permanent or time-specific SLAs, with the SDN controller expressing these in dynamic or explicit paths scaled by injecting paths in packets instead of network devices.
The document provides instructions for configuring BGP route aggregation on a network topology. It assigns IP addresses to routers, configures eBGP peering between autonomous systems, and verifies connectivity. It then demonstrates aggregating routes on R2 using the aggregate-address command with different options to summarize routes advertised to neighboring ASes. This reduces the number of routes and optimizes routing table sizes.
The document provides an overview of the Border Gateway Protocol (BGP). It begins with general information about BGP, including that it is used for routing between autonomous systems and is classified as a path vector routing protocol. It then covers BGP theory in detail over several sections, explaining concepts like neighbors, messages, states, attributes and more. The document aims to provide thorough theoretical understanding needed to implement BGP in a lab.
Traffic Engineering Using Segment Routing Cisco Canada
1) The document discusses using segment routing for traffic engineering. It provides an overview of segment routing technology, use cases, control and data plane operations, and how segment routing can be used for traffic engineering.
2) Key aspects covered include how segment routing works by encoding a path as an ordered list of segments, different types of segments (IGP prefixes, adjacencies, BGP), and how this allows for application-engineered end-to-end paths.
3) Traffic engineering with segment routing provides explicit routing, supports constraint-based routing without needing RSVP-TE, and uses existing IGP extensions to advertise link attributes.
For enterprise network engineers, implementing BGP can be an intimidating task. This presentation was given to address common architectures for internet and MPLS BGP usage, along with best practices.
Using BGP To Manage Dual Internet ConnectionsRowell Dionicio
Meredith Rose discusses using BGP to manage dual internet connections for redundancy. BGP allows traffic to be distributed across both connections simultaneously or fail over from one to the other. Key considerations include preventing the corporate network from becoming a transit path, influencing inbound and outbound traffic flows, and options for routes to import from each ISP like full routes, defaults only, or ISP customer routes plus a default. Proper configuration is needed to load balance connections and control traffic flows for both redundancy and performance.
This document provides an overview of BGP (Border Gateway Protocol) basics and configuration for internet service providers. It discusses BGP attributes, path selection, and applying routing policies. The key points covered include the purpose of BGP in exchanging routing information between autonomous systems, BGP neighbor configuration for internal and external peers, and using attributes like AS path, local preference, communities to influence best path selection.
The document discusses techniques for improving BGP convergence including next hop tracking (NHT), which allows BGP to react quickly to IGP changes without waiting 60 seconds for the full BGP table scan; minimum route advertisement interval (MRAI) timers which batch route updates to peers but can also slow convergence across multiple autonomous systems; and event driven route origination which reduces CPU usage compared to the previous polling model. Faster session deactivation (FSD) also allows BGP sessions to be quickly torn down if the route to a peer is lost.
This document describes a presentation on designing MPLS Layer 3 VPN networks, covering MPLS VPN technology overview, configuration, services such as multihoming and hub-and-spoke, and best practices. The presentation discusses how MPLS VPNs use VRFs, MP-BGP, and label switching to provide scalable VPN services to enterprises by separating routing and forwarding tables for each customer VPN. Sample MPLS VPN configurations for PE, P, and route reflector routers are also provided.
A presentation to help new network operators plan a project to improve their network traffic management. Useful for inbound and outbound heavy networks. Lists the things you need to do to reach routing and peering nirvana.
Border Gateway Protocol (BGP) is the routing protocol that controls how data routes between autonomous systems on the Internet. It works by maintaining a table of IP network prefixes and their accessibility between networks. BGP allows for fully decentralized routing and is used internally by gateways to determine the best route to a given destination network. There are two types of BGP sessions - internal BGP (iBGP) for intra-autonomous system routing and external BGP (eBGP) for inter-autonomous system routing. BGP uses messages like OPEN, UPDATE, KEEPALIVE and NOTIFICATION to establish and maintain sessions between routers to exchange routing information.
1. The document describes the configuration of MPLS-TE and OSPF on a network with Junos and Cisco routers to set up LSPs between routers J1 and J2.
2. An LSP named J1-J2 is configured on Junos router J1 with an explicit primary path of J1-R1-R2-J2. When a failure occurs on the link between R2-J2, the LSP dynamically switches to a secondary path.
3. The Cisco routers provide information on the LSPs transiting them, such as labels, hops, and changes when the path for J1-J2 switches due to the failure.
The document discusses IP routing protocols RIP, RIP version 2, EIGRP, and OSPF. It provides details on configuration and features of each protocol, including route summarization, route filtering, default routing, and stub routing. It also covers troubleshooting routing loops caused by interface summaries in RIP and using leak maps in EIGRP.
Juniper JNCIA – Juniper RIP and OSPF Route ConfigurationHamed Moghaddam
The document describes configuring OSPF routing between routers R1, R2, and R3, and exporting OSPF routes into RIP to advertise them to router R4. R2 is configured with OSPF to neighbors R1 and R3, and with RIP to neighbor R4. The routing policy on R2 is updated to export OSPF routes into RIP. This allows R4 to now see the loopback routes of R1 and R3 in its routing table via RIP.
Networking Tutorial Goes to Basic PPP Configuration3Anetwork com
Leading Cisco networking products distributor-3network.com
Here we will be going over Basic Configuration of PPP (Point-to-Point Protocol). It includes Basic Configuration tasks on a router, configuring OSPF routing protocol, and configuring PPP PAP and CHAP authentication
This document provides information about Cisco exam 642-902:
- It lists the exam number, passing score, time limit, vendor, and name.
- It indicates the examinee passed the CCNP 640-902 exam with a score of 1000.
- It outlines the various sections covered in the exam, including EIGRP, OSPF, BGP, Redistribution, IPv6, Routing, Drag and Drop, Simulation, and Hotspot questions.
- It provides sample exam questions and answers related to OSPF configuration and troubleshooting.
The document describes a set of exercises to configure basic routing and OSPF routing on routers. It includes instructions on configuring interfaces, static routing, and OSPF routing. Participants will work in groups to configure three routers and four switches with a common IP addressing scheme and network topology. The exercises progress from basic router configuration to static routing and finally dynamic routing using OSPF.
The document describes an OSPF network configuration across three routers - Hyderabad, Chennai and Bangalore. Chennai is configured as the backbone Area 0 router connecting two other areas - Area 1 between Hyderabad and Area 2 between Bangalore. Each router is configured with OSPF and associated networks and area IDs.
The document discusses OSPF internal route summarization. It explains that OSPF summarization can only be configured on area border routers (ABRs) between areas, and that it involves using a route range to join multiple routes into fewer summary routes. Configuring summarization reduces routing table and link state database sizes. The example shows routing tables and link state databases before and after configuring a route range on an ABR to summarize two networks in an area into a single inter-area route.
- The document describes the configuration and verification of a single-area OSPFv2 network connecting several routers and networks. It includes an addressing table and objectives for verifying neighbor relationships, route learning, and adding a new LAN to the OSPF domain.
- Through show commands on various routers, it is confirmed that OSPF neighbors are fully adjacent and routes are being propagated correctly through the domain. Pings also validate connectivity across the networks.
- Adding a new router connecting a branch office LAN integrates it into the OSPF routing, with the neighbor relationship achieving full state and routes being distributed to the new network.
OSPF is a link-state routing protocol that uses LSAs to share routing information between routers. Routers running OSPF build a link-state database (LSDB) from received LSAs and use the SPF algorithm to determine the best paths to destinations. OSPF routers establish neighbor adjacencies to exchange LSAs and populate their LSDBs. Areas allow hierarchical routing and route summarization between areas is performed by area border routers (ABRs).
This document provides instructions for configuring a multi-area OSPF network. SanJose1 is configured as an area border router (ABR) connecting Area 0 and Area 1. SanJose3 is also an ABR connecting Area 0 and Area 51. Singapore is configured to redistribute static routes learned from Auckland into Area 51, making it an autonomous system boundary router (ASBR). Inter-area route summarization is configured on SanJose1 to reduce routing table entries.
This document describes the configuration of IPv6 RIP routing between two routers and two laptops. Router 2 and Router 3 were configured with IPv6 unicast routing and RIP for IPv6. Interface configurations enabled RIP for IPv6 on connected interfaces. Show ipv6 route outputs on each router indicate routes were learned via RIP for connected subnets and a default route was installed. Testing is suggested between laptops connected to different subnets to verify connectivity across the routers.
The document discusses configuring OSPF routing on Ethernet and Frame Relay networks. For the Ethernet network, OSPF is configured to elect R1 as the DR and R2 as the BDR by setting their interface priorities. For the Frame Relay network, OSPF is configured with static mappings between routers since Frame Relay is non-broadcast by default. Neighbor statements are used to define neighbors since hellos are unicast. Verification commands show the elected DR and neighbors.
Huawei ARG3 Router How To - Troubleshooting OSPF: Router ID ConfusionIPMAX s.r.l.
This document discusses troubleshooting an OSPF routing protocol configuration issue where routers have an incorrect router ID. It describes checking connectivity and routing tables between routers, which reveal inconsistencies. The root cause is identified as Router A having the wrong router ID of 2.2.2.2 instead of its interface IP 1.1.1.1. The configuration is corrected by changing Router A's router ID, saving the changes, and rebooting Router A. Verification shows routing tables on Router C are now updated correctly.
Routing protocols allow routers to communicate and exchange information that helps determine the best path between networks. The main types are static routing, where routes are manually configured, and dynamic routing, where routes are automatically updated as network conditions change. Common dynamic routing protocols include RIP, IGRP, EIGRP, and OSPF, which use different algorithms and metrics like hop count or bandwidth to calculate the best routes.
- The document describes a lab scenario demonstrating basic BGP configuration and operation between autonomous systems.
- In the initial configuration, the boundary routers can exchange routes learned from their respective ISPs via EBGP, but cannot exchange routes learned from the opposite ISP due to the lack of IBGP configuration.
- Configuring IBGP between the boundary routers allows them to exchange all external BGP routes, without needing to redistribute via the IGP. However, the "BGP synchronization rule" prevents advertisement of routes before the next hop address is learned via the IGP.
1. The document provides instructions for configuring OSPF routing, filtering LSAs, and summarizing routes between OSPF areas on a network with multiple routers.
2. Tasks include configuring OSPF on each router, filtering routes between areas, redistributing EIGRP routes into OSPF, and using prefix lists and route summarization.
3. The solution shows the OSPF and redistribution configurations needed on each router to implement the requested tasks and filters.
1. 1. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Basics Setup & OSPF
Going back to basics with Network Design, Route-Reflectors (iBGP), OSPF & Finally eBGP
J3 – Loop 10.0.0.3
J4 – Loop 10.0.0.4
R1 – Loop 10.0.0.10
R2 – Loop 10.0.0.11
R3 – Loop 10.0.0.12
R4 – Loop 10.0.0.13
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
1. Get OSPF Talking in Area 0
2. Get J03 – J04 Talking iBGP-RR
3. Add R1/R2 → iBGP – J03 (left)
4. Add R3/R4 → iBGP – J04 (right)
5. Add eBGP PEERS
6. Design Route-Maps OUT
7. Design some Resiliency
AS99
My IP ADDRESS Range
10.0.0.0/24 – Reserved for Loopbacks
20.0.0.0/30 – Private links betw J03-J04
30.0.0.0/24 – Reserved for ibgp (left)
40.0.0.0/24 – Reserved for ibgp (right)
left right
Have a closer look at our Network AS99. It really looks like two networks
separated only by the 20.0.0.0/30 portion (interface em1). In fact, we can
imagine that the “left” was the first network and later after expansion, a “right”
network as added together with a the new IP Range 40.0.0.0/24. - Later on we
will consider some “problems” with this design and how perhaps to overcome it.
Junos J03
kjteoh@Junos-3> show configuration interfaces lo0
unit 0 {
description Loop0;
family inet {
address 10.0.0.3/32;
}
kjteoh@Junos-3> show configuration interfaces em1
description Junos3-Junos4;
unit 0 {
family inet {
address 20.0.0.1/30;
}
kjteoh@Junos-3> show configuration routing-options router-id
router-id 10.0.0.3;
kjteoh@Junos-3> show configuration protocols ospf
area 0.0.0.0 {
interface all;
Cisco R1/R2
interface Loopback0
description loop
ip address 10.0.0.10 255.255.255.255
!
interface FastEthernet0/1
description R1-Junos3
ip address 30.0.0.2 255.255.255.0
!
router ospf 99
router-id 10.0.0.10
log-adjacency-changes
redistribute connected subnets
passive-interface default
no passive-interface FastEthernet0/1
network 0.0.0.0 255.255.255.255 area 0
Make sure everything works.
kjteoh@Junos-3> show ospf neighbor
Address Interface State ID
30.0.0.2 em0.0 Full 10.0.0.10
30.0.0.3 em0.0 Full 10.0.0.11
20.0.0.2 em1.0 Full 10.0.0.4
R2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Addres
10.0.0.3 128 FULL/DR 00:00:39 30.0.0.1
10.0.0.10 1 FULL/BDR 00:00:38 30.0.0.2
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
Why is this important?
Answer: the Cisco router are on the edge
and if it is connected to an external peer the
Cisco router will try and do OSPF with it and
send hello packets. Not good!
2. 2. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Config RR
Making J03 and J04 participate as Route Reflector & iBGP neighbors
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
Really important to plan stuff out here especially with Junos. You have the options to
create bgp “groups” which is an advantage but can go haywire/
messy/unmanageableif you don't properly plan it in the configs.
J03 iBGP Configs & RR
kjteoh@Junos-3> show configuration protocols bgp group ibgp-RR-ONLY
type internal;
local-address 10.0.0.3;
advertise-peer-as;
family inet {
unicast;
}
export ibgp_export;
cluster 10.0.0.3;
local-as 99;
neighbor 10.0.0.4 {
description Junos4-RR;
}
Create a “group” and stick with it
IBGP ONLY
Define your Cluster
You're DONE!
Repeat the same on J04
cluster 10.0.0.4
Create Route-Map “out”
kjteoh@Junos-3> ...cy-options policy-statement ibgp_export
term 1 {
from protocol direct;
then accept;
}
term 3 {
from protocol static;
then accept;
}
term 2 {
from protocol ospf;
then accept;
Mostly self-explanatory but
this rule is interesting and it
had to be created to make a
40.0.0.0/24 network (right)
available to the 30.0.0.0/24
network on the left!
(In iBGP)
How do Route-Reflectors work?
First, this only applies to iBGP. R1 & R2 only need to do iBGP with J03. J03 in
turn learn iBGP routes from J04 and tell J03 about them. J04 will have his own set
of iBGP neighbors … in our case, R3 & R4. They will learn routes from the “left”
network via the exchange from J03 ↔ J04.
Of course it is also possible for the Cisco clients R1 & R2 to do ibgp with J04 and it
is a good idea too (dotted blue). J03 might fail. If this is the case, it is best to
ensure that the Left network can physically find its way to the Right network. This
can be achieved by trunking the switches above.
But we will also understand that OSPF adjacency will grow for ALL the routers as
they will become direct neighbors. Something to take note of.
BUT, there is a DOWNSIDE to having Route-Reflectors over FULL-MESH. Can
anybody tell me what it is?
IBGP-LEFT
Trunk
IBGP- RIGHT .. Maybe Later
kjteoh@Junos-3> show route receive-protocol bgp 10.0.0.4
inet.0:
Prefix Nexthop MED Lclpref AS path
10.0.0.4/32 10.0.0.4 100 I
10.0.0.12/32 40.0.0.2 2 100 I
10.0.0.13/32 40.0.0.3 2 100 I
20.0.0.0/30 10.0.0.4 100 I
40.0.0.0/24 10.0.0.4 100 I
Loops & interface IP
of R3 & R4 from
“right” network
“Right” network origination
the 40.0.0.0/24 block
kjteoh@Junos-3> show route table inet.0 40.0.0.0/24
40.0.0.0/24 *[OSPF/10] 01:14:33, metric 2
> to 20.0.0.2 via em1.0
[BGP/170] 01:13:43, localpref 100, from 10.0.0.4
AS path: I
> to 20.0.0.2 via em1.0
3. 3. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Config RR – Adding iBGP Peers R1 & R2
Adding iBGP Peers to J03... R1 & R2 – Prepare J03 to accept clients
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
Configs J03
group ibgp {
type internal;
local-address 10.0.0.3;
advertise-peer-as;
family inet {
unicast;
}
export ibgp_export;
cluster 10.0.0.3;
local-as 99;
neighbor 10.0.0.10 {
description Cisco-R1;
}
neighbor 10.0.0.11 {
description Cisco-R2;
}
}
Specific group
created for Left
network
RR cluster
ID for J03 &
local AS99
Neighbor
IP
Configs
Route-Map
OUT
Configs R1/R2
router bgp 99
neighbor 10.0.0.3 remote-as 99
neighbor 10.0.0.3 update-source Loopback0
!
address-family ipv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 soft-reconfiguration inbound
!
Neighbor IP
Loop J03
IBGP
Is this Important? Does
R1 & R2 have multiple
exit points to J03?
What about Next hop-
self?
What is soft-recon ..
Is this mandatory?
Properly configured …
J03
kjteoh@Junos-3> show bgp summary
Groups: 3 Peers: 5 Down peers: 0
Peer AS InPkt OutPkt OutQ
10.0.0.4 99 87 88 0 0
10.0.0.10 99 82 97 0 0
10.0.0.11 99 81 96 0 0
Cisco R2
R2#show bgp sum
BGP router identifier 10.0.0.11, local AS number 99
Neighbor V AS MsgRcvd MsgSent Tbl
10.0.0.3 4 99 88 76 24
My IBGP AS
This is J04
configured
in slide 2
The Cisco
R1 & R2
neighbor
The J03 neighbor configured. I
will learn router R1 from this
iBGP neighbor (not ospf).
Does this mean that I (R2) will
INSTALL it?
R2#show ip bgp neighbors 10.0.0.3 routes
BGP table version is 24, local router ID is 10.0.0.11
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i10.0.0.0/24 10.0.0.3 100 0 i
r>i10.0.0.3/32 10.0.0.3 100 0 i
r>i10.0.0.4/32 20.0.0.2 1 100 0 i
r>i10.0.0.10/32 30.0.0.2 2 100 0 i
In terms of ROUTING,
which prefix will be
installed in Cisco R2?
10.0.0.0/24 or
10.0.0.10/32?
Compare: show ip route
10.0.0.10
Why is this
MANDATORY?
Cisco syntax
below
4. 4. Back to Basics – OSPF / iBGP (Route Reflectors) - What R1/R2 is really learning from “Right” side
Refer slide 3 and perform the same between J04 ↔ Cisco R3 & R4. We will have the
following setup … One of the main Questions you should be asking yourself is … who and
which router is ORIGINATING routes for ..10.0.0.0/24, 30.0.0.0/24 & 40.0.0.0/24?
How are routes originated? Is this an automatic process? Is this OSPF or BGP?
Is there such a thing as originating routes in OSPF?
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
Left Network J03
Junos03 ibgp neighbors
R1 @ 10.0.0.10
R2 @ 10.0.0.11
Router J03
Right Network J04
Junos04 ibgp neighbors
R3 @ 10.0.0.12
R4 @ 10.0.0.13
Router J04
IBGP
20.0.0.0/30
Router R1
Router R2
IBGP
10.0.0.0/24
30.0.0.0/24
IBGP
10.0.0.0/24
40.0.0.0/24
Router R3
Router R4
Cluster RR
10.0.0.3 & .4
R2#show ip route
20.0.0.0/30 is subnetted, 1 subnets
O 20.0.0.0 [110/11] via 30.0.0.1, 01:54:57, FastEthernet0/1
40.0.0.0/24 is subnetted, 1 subnets
O 40.0.0.0 [110/12] via 30.0.0.1, 01:50:53, FastEthernet0/1
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O 10.0.0.10/32 [110/11] via 30.0.0.2, 01:56:32, FastEthernet0/1
C 10.0.0.11/32 is directly connected, Loopback0
O 10.0.0.12/32 [110/13] via 30.0.0.1, 01:50:55, FastEthernet0/1
O 10.0.0.13/32 [110/13] via 30.0.0.1, 01:50:55, FastEthernet0/1
O 10.0.0.3/32 [110/10] via 30.0.0.1, 01:55:00, FastEthernet0/1
B 10.0.0.0/24 [200/0] via 10.0.0.3, 01:54:19
O 10.0.0.4/32 [110/11] via 30.0.0.1, 01:51:17, FastEthernet0/1
30.0.0.0/24 is subnetted, 1 subnets
C 30.0.0.0 is directly connected, FastEthernet0/
Relevant Codes:
B – BGP
C – connected
O – OSPF
This is a small network and we should really take
the time to go through every route and understand
how it is learned and where it is coming from.
We can “learn” routes from many Routers &
SOURCES (protocols), but we install only ONE
route and use it for routing.
It is possible to learn one route from one router and
from different source (protocols).
R2#show ip route 10.0.0.2
Routing entry for 10.0.0.0/24
Known via "bgp 99", distance 200, metric 0, type internal
Last update from 10.0.0.3 00:00:08 ago
Routing Descriptor Blocks:
* 10.0.0.3, from 10.0.0.3, 00:00:08 ago
Route metric is 0, traffic share count is 1
AS Hops 0
This becomes really
important when you
start doing EBGP with
other networks / ASNs
5. 5. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Adding EBGP Peers / Neighbors / Route-Maps
Adding R5-AS100 with routes 200.0.0.0/24. Set up direct connection between
R5 – R1. You will do eBGP on this link – R5@fa0/0 ↔ R1@fa0/0
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
R5 - AS100
ebgp
FA0/0
FA0/0
Configs on R5 - AS100
interface Loopback200
description loopback200
ip address 200.0.0.1 255.255.255.0
!
interface FastEthernet0/0
description ebgp-R5-R1
ip address 100.0.0.1 255.255.255.252
!
router bgp 100
bgp log-neighbor-changes
neighbor 100.0.0.2 remote-as 99
!
address-family ipv4
neighbor 100.0.0.2 activate
neighbor 100.0.0.2 soft-reconfiguration inbound
no auto-summary
no synchronization
network 200.0.0.0
exit-address-family
!
!
!
ip forward-protocol nd
ip route 200.0.0.0 255.255.255.0 Null0 name BGP-PULL-UP
Originating Routes
E-BGP Peer
Note: On Junos
we write type
“internal or
external” &
peer-as
Create “routes” to
advertise. Remember, R5
is ONLY running BGP.
There isn't another
protocol to learn from and
inject into BGP
Configs on R1
router bgp 99
bgp log-neighbor-changes
neighbor 10.0.0.3 remote-as 99
neighbor 10.0.0.3 update-source Loopback0
neighbor 100.0.0.1 remote-as 100
!
address-family ipv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 soft-reconfiguration inbound
neighbor 100.0.0.1 activate
neighbor 100.0.0.1 soft-reconfiguration inboundR5#show ip bgp neighbors 100.0.0.2 routes
BGP table version is 48, local router ID is 200.0.0.1
Network Next Hop Metric LocPrf
*> 10.0.0.0/24 100.0.0.2 0 99 i
*> 10.0.0.3/32 100.0.0.2 0 99 i
*> 10.0.0.11/32 100.0.0.2 0 99 i
*> 20.0.0.0/30 100.0.0. 0 99 i
*> 30.0.0.0/24 100.0.0.2 0 99 i
*> 100.0.0.4/30 100.0.0.2 0 99 i
Problem here: R1 is sending even /32s! Not good.
R1 needs a route-map OUT. See AS-99-OUT on
Cisco R1
neighbor 100.0.0.1 route-map AS-99-OUT out
!
ip prefix-list 10 seq 5 permit 10.0.0.0/24
ip prefix-list 30 seq 5 permit 30.0.0.0/24
ip prefix-list 40 seq 5 permit 40.0.0.0/24
!
!
!
route-map AS-99-OUT permit 10
match ip address prefix-list 10 30 40
set metric 600
R5#show ip bgp neighbors 100.0.0.2 routes
BGP table version is 56,
local router ID is 200.0.0.1
Network Next Hop Metric LocPrf
*> 10.0.0.0/24 100.0.0.2 600 0 99 i
*> 30.0.0.0/24 100.0.0.2 600 0 99 i
*> 40.0.0.0/24 100.0.0.2 600 0 99 I
New and better looking results
AS99 needs to be neat & tidy and
advertise only /24s. While it is OK to
have small /32s internally, it is NOT
OK to advertise such small blocks to
eBGP peers.
Another important route-map that R1
should include is to reject 0.0.0.0/0
from eBGP Peers.
6. 6. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – How does R3 (Right) learn about 200.0.0.0/24
What we know so far. R5 – ebgp – R1. R1 ONLY learns 200.0.0.0/24 from R5. OK
How does R5 tell the LEFT network about new 200.0.0.0/24?
How does R5 tell the RIGHT network about new 200.0.0.0/24? J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
R5 - AS100
ebgp
FA0/0
FA0/0
Lets look at R2 – LEFT
R2#show bgp sum
BGP router identifier 10.0.0.11, local AS number 99
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
10.0.0.3 4 99 13 6 19 0 0 00:01:01 10
R2#show ip bgp neighbors 10.0.0.3 routes
BGP table version is 19, local router ID is 10.0.0.11
Network Next Hop Metric LocPrf Weight Path
*>i10.0.0.0/24 10.0.0 100 0 i
...
*>i200.0.0.0 100.0.0.1 0 100 0 100
R2#show ip route 200.0.0.1
Routing entry for 200.0.0.0/24
Known via "bgp 99", distance 200, metric 0
Tag 100, type internal
Last update from 100.0.0.1 00:02:38 ago
Routing Descriptor Blocks:
* 100.0.0.1, from 10.0.0.3, 00:02:38 ago
Route metric is 0, traffic share count is 1
AS Hops 1
Route tag 100
One bgp neighbor only
Many routes ..
focus on
200.0.0.0/24
Installed ROUTES
BGP 99
Default distance (AD)
“tag” = AS100
Demonstrates how RR works. There is no direct ibgp r'ship
between R2 & R1 with each other; but BGP routes still shared.
Also interesting is how R3 learns the 200.0.0.0/24 route since its ibgp
neighbor is 10.0.0.4 (J04) and not J03. J03 ↔ exchange routes ↔
J04, and J04 made it available to R3.
Delete “cluster 10.0.0.x” on J03 or J04, restart BGP and see how the
200.0.0.0/24 network disappears from the RIGHT network!
What we ALSO understand is that BECAUSE we have used a
100.0.0.0/30 IP Address on R1@fa0/0 it has been injected into our
OSPF table as internally used. The same also applies to 20.0.0.0/30
between J03 ↔ J04!
Cisco R3
R3#show bgp sum
BGP router identifier 10.0.0.12, local AS number 99
Neighbor V AS MsgRcvd MsgSent TblVer InQ
10.0.0.4 4 99 66 51 23 0 0 00:24:20
R3#show ip bgp neighbors 10.0.0.4 routes
BGP table version is 23, local router ID is 10.0.0.12
Network Next Hop Metric LocPrf Weight Path
*>i10.0.0.0/24 10.0.0.3 100 0 i
...
*>i200.0.0.0 100.0.0.1 0 100 0 100 i
R3#show ip route 200.0.0.1
Routing entry for 200.0.0.0/24
Known via "bgp 99", distance 200, metric 0
Tag 100, type internal
Last update from 100.0.0.1 00:25:27 ago
Routing Descriptor Blocks:
* 100.0.0.1, from 10.0.0.4,
Route metric is 0, traffic share count is 1
AS Hops 1
Route tag 100
J04 - RR
200.0.0.0 –
target DST route
100.0.0.1 –
target next-hop
Learned
from J04
Find 100.0.0.1
and you will find
200.0.0.0/24
R3 will use
another CPU
cycle to find
100.0.0.1/OSPF
7. 7. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Adding 2nd
EBGP Peers / Neighbors / Route-Maps
We are going to ADD another EBGP R6-AS200 to Cisco R2 and advertise 200.0.1.0/24
We will need to advertise the new AS200 to the LEFT & RIGHT
network as well as to AS100 which was established earlier. J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
R5 - AS100
ebgp
FA0/0
FA0/0
R6 - AS200
ebgp
FA0/0
FA0/0
Assuming that you have configured EBGP between AS99 (R2) ↔ AS200 (R6)
w/o any sort of route maps IN or OUT. You will expect to see that AS200
received many routes including AS100 prefix 200.0.0.0/24
R6 – AS200
R6#show ip route
B 200.0.0.0/24 [20/0] via 100.0.0.6, 00:02:38
20.0.0.0/30 is subnetted, 1 subnets
B 20.0.0.0 [20/0] via 100.0.0.6, 00:02:38
200.0.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 200.0.1.1/32 is directly connected, Loopback200
S 200.0.1.0/24 is directly connected, Null0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
B 10.0.0.10/32 [20/0] via 100.0.0.6, 00:02:40
B 10.0.0.3/32 [20/0] via 100.0.0.6, 00:02:40
B 10.0.0.0/24 [20/0] via 100.0.0.6, 00:02:40
Confirm that
we can learn
AS100/prefix
R2 – AS99
R2#show ip bgp neighbors 100.0.0.5 routes
Network Next Hop Metric LocPrf Weight
*> 200.0.1.0 100.0.0.5 0 0 200 i
Confirm that
R02 is
receiving
routes from
AS200
The next QUESTION to ask. Is R5 (AS100) receiving
AS200/prefix (200.0.1.0/24)?
Quick answer is NO. This is 99% because we have a
ROUTE-MAP Out on R1(AS99) ↔ R5(AS100) and
there is an implicit DENY in the behavior.
Right now there are two remedial options:
a) modify ROUTE-MAP out on R1 ↔ R5 (AS100)
b) remove ROUTE-MAP out on R1 ↔ R5 (AS100)
Cisco R1 (AS99) → Cisco R5 (AS 100)
ip prefix-list 10 seq 5 permit 10.0.0.0/24
ip prefix-list 30 seq 5 permit 30.0.0.0/24
ip prefix-list 40 seq 5 permit 40.0.0.0/24
!
ip prefix-list AS200 seq 10 permit 200.0.1.0/24
!
route-map AS-99-OUT permit 10
match ip address prefix-list 10 30 40 AS200
set metric 600
* clear ip bgp 100 to reset bgp session
NEW
R5 – AS200 will now received AS200
R5#show ip route
100.0.0.0/30 is subnetted, 1 subnets
C 100.0.0.0 is directly connected, FastEthernet0/0
C 200.0.0.0/24 is directly connected, Loopback200
B 200.0.1.0/24 [20/600] via 100.0.0.2, 00:17:53
10.0.0.0/24 is subnetted, 1 subnets
B 10.0.0.0 [20/600] via 100.0.0.2, 00:17:53
30.0.0.0/24 is subnetted, 1 subnets
B 30.0.0.0 [20/600] via 100.0.0.2, 00:17:53
R5 receiving
AS200/prefix
NOTE:
The BIG problem here. What if we add AS300,
AS400, AS500 and so on? In order to ensure
that all routes are properly aggregated & all my
EBPG-Peers have visibility of each other, ALL
my ROUTE-MAP OUT will constantly require
modification/updates similar to R1..
How can this “inconvenience” be solved in a
more elegant way? Communities – Next Slide
Note: if J04 is set up properly, nothing extra
needs to be done for the RIGHT network to
learn AS100 & AS200
8. 8. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Using BGP Communities
What are BGP Communities? These are a special set of instructions that can be created in BGP
and re-advertised in BGP throughout the network. All routers destined to received the
re-advertised routes/prefix/ASN will have an option to receive
the community and perform a certain configured action.
In our set up what we are going to do is the following:
1. EBGP is already set up with AS100 & AS200
2. The PROBLEM is, if I add another EBGP AS300, I will
have a lot of work to do. I will need to go to every
router and reconfigure a AS-99-OUT to recognize
the new AS300/prefix, accept it and advertise it to
the participating / neighbor ASN... I am lazy.
3. See Slide 7 (above) where I had to add “ip prefix-list AS200”
on Cisco R1 to advertise 200.0.1.0/24 to EBGP
neighbor AS100. A similar ip prefix-list ASXXX would be
required on Cisco R2 to advertise 200.0.0.0/24 to
EBGP neighbor AS200.
4. The situation will become MORE complex if R6-AS200 has another
downstream customer... say, AS210. How would YOU configure
AS210 → AS200 → AS99 → TRANSIT → AS100 AND vice-versa?
Our BGP Community Example
Out example is plain and NOT extensive. But it is hoped that it will provide
a small insight into what we can use BGP Communities for and how it
can help automate the set up. We will ONLY consider the current setup
where we R2 has to learn about routes from R5-AS100 (200.0.0.0/24)
and re-advertise it to R6-AS200.
Our plan is to get J03 to learn AS100/prefix AND tag it with community 99:355
and tell R2 about it. R2 will receive 99:355, “install it” and re-advertise it to AS200.
J03 will ALSO have to learn AS200/prefix, tag it 99:355, tell R1. R1 will then have to receive it, install it & re-advertise it to AS100.
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
R5 - AS100
ebgp
FA0/0
FA0/0
R6 - AS200
ebgp
FA0/0
FA0/0
E.G. AS300
The following MUST happen and we will use
BGP Communities to help us out.
1. J3 – Learns AS100/prefix (200.0.0.0/24)
2. J3 – Must tag it with 99:355
3. J3 – Must TELL Cisco R2
4. R2 - Must learn 99:355
5. R2 – Must ACCEPT it
6. R2 – Must TELL ebgp AS200
R6 – Will accept it anyway!
E.G. AS210
9. 9. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco – Communities – Auto learn, tag & announce
BGP Communities
Learn iBGP prefix & tag it with 99:355
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
R5 - AS100
ebgp
FA0/0
FA0/0
R6 - AS200
ebgp
FA0/0
FA0/0
J03 – policy-option
policy-statement tag-355 {
term 1 {
from protocol bgp;
then {
community set ebgp-customers;
accept;
}
}
}
community ebgp-customers members 99:355;
Policy-Name
Learned from...
Add tags from community ...
We have created a policy-option named “tag-355”. It will learn
from protocol BGP and apply community name “ebgp-customers”:
99:355 as defined in community ebgp-customers a little lower
down the configs.
We need to APPLY this rule to the correct “protocols bgp group ...”
kjteoh@Junos-3> show conf.. proto.. bgp
group ibgp {
type internal;
local-address 10.0.0.3;
advertise-peer-as;
family inet {
unicast;
}
export [ ibgp_export tag-355 ];
cluster 10.0.0.3;
local-as 99;
neighbor 10.0.0.10 {
description Cisco-R1;
}
neighbor 10.0.0.11 {
description Cisco-R2;
}
Added – NEW
See Slide 3 for
a recap
After commit & clear
BGP neighbor .. test
your “new”
advertisements.
Now that this is done, what is J03 telling R2?
kjteoh@Junos-3> show route advertising-protocol bgp 10.0.0.11 200.0.0.0/24 detail
* 200.0.0.0/24 (1 entry, 1 announced)
BGP group ibgp type Internal
Nexthop: 100.0.0.1
MED: 0
Localpref: 100
AS path: [99] 100 I
Communities: 99:355
Cluster ID: 10.0.0.3
Originator ID: 10.0.0.10
J03 has learnt 200.0.0.0/24
and is tagging it with 99:355
AND is telling R2@10.0.0.11
R2 @10.0.0.11 needs to do now is create:
!
ip bgp-community new-format
ip community-list standard tag-355 permit 99:355
!
route-map AS-99-OUT permit 10
match ip address prefix-list 10 30 40 AS100
set metric 500
!
route-map AS-99-OUT permit 20
match community tag-355
set metric 355
Remove this.. see Slide 7
we don't want it anymore BUT
maintain prefix-list 10 30 & 40
Go to R6 and look at received
routes .. see metric 355
J3 learns
AS200
200.0.0.0
/24 untag
J3 tags
99:355
advertise it
R2 will learn
99:355 install
& advertise it
to AS200
Additional permit seq “20”
10. 10. Back to Basics – OSPF / iBGP (Route Reflectors) / eBGP Junos – Cisco - Notes
Disadvantage of using RR? What does bgp multipath do for us? Add redundancy to both
networks by building iBGP adjacency. Eg. J03 ↔ R3 & R4.
What would the situation be if R1 has a new eBGP customer
R7 AS-300? … BIG Question here!
Kjteoh 11/3/2016
J03-RR-0.3 J04-RR-0.4
20.0.0.0/30
30.0.0.X/24 40.0.0.0/24
R1-0.10
R2-0.11
R3-0.12
R4-0.13
AS99
left right
em0 em0
FA0/1
FA0/1 FA0/1
FA0/1
em1
R5 - AS100
ebgp
FA0/0
FA0/0
R6 - AS200
ebgp
FA0/0
FA0/0
ebgp
R7 - AS300