Courseiva
ENCOR lab 12

BGP multihoming: local preference, AS-path prepending and no transit

Dual-home a company to two ISPs with eBGP, send outbound traffic through ISP-A with local preference, pull inbound traffic to ISP-A with AS-path prepending, and stop the company becoming a transit AS.

About 45 minutes 5 devices 5 tasksAdvanced

Scenario

The company (AS 65001) has one router, R1, connected to ISP-A (AS 100) and ISP-B (AS 200); both ISPs reach the Internet (AS 300, 203.0.113.0/24). ISP-A is the primary link. Peer R1 with both ISPs and advertise the office LAN 192.168.10.0/24. Make R1 send traffic for the Internet through ISP-A by giving ISP-A's routes a local preference of 200. Make the Internet send traffic for 192.168.10.0/24 back through ISP-A by prepending AS 65001 twice towards ISP-B. Finally, make sure R1 advertises only its own prefix: it must never pass one ISP's routes to the other (use an AS-path filter that matches routes originated in your AS). The ISPs and the Internet router are already configured.

eth0Gi0/2Gi0/0Gi0/0Gi0/1Gi0/0Gi0/1Gi0/0Gi0/1Gi0/1PC1PC1 — PCR1R1 — Router (2911)ISPAISPA — Router (2911)ISPBISPB — Router (2911)INETINET — Router (2911)
100%

Your tasks

  1. R1 (AS 65001) has Established eBGP sessions with ISP-A (10.0.1.1, AS 100) and ISP-B (10.0.2.1, AS 200).
  2. R1 advertises 192.168.10.0/24 to both ISPs, and never passes one ISP's routes to the other.
  3. R1's best path to the Internet (203.0.113.0/24) is through ISP-A, chosen by a local preference of 200.
  4. The Internet router's best path to 192.168.10.0/24 is through ISP-A (AS path 100 65001).
  5. PC1 reaches the Internet (203.0.113.1).

The lab checks the result, not the exact commands. For example, a ping task passes only when the ping really succeeds through the network you built.

Start the lab