SIMULATION
Guidelines
This is a lab item in which tasks will be performed on virtual devices.
- Refer to the Tasks tab to view the tasks for this lab item.
- Refer to the Topology tab to access the device console(s) and perform the tasks.
- Console access is available for all required devices by clicking the device icon or using the tab(s) above the console window.
- All necessary preconfigurations have been applied.
- Do not change the enable password or hostname for any device.
- Save your configurations to NVRAM before moving to the next item.
- Click Next at the bottom of the screen to submit this lab and move to the next question.
- When Next is clicked, the lab closes and cannot be reopened.
Topology

Tasks
Star Technology has decided to establish connectivity with an ISP for accessing the Internet. In phase 1, the approach is to establish a dual-homed connection from HQ-R1 to ISP-R1 and ISP- R2. This will provide some degree of redundancy in the connectivity between HQ-R1 and ISP routers.
Based on network design, an autonomous system of Star Technology is 1, and AS of ISP is 2. A network Implementation Engineer has already initiated the configuration; trouble-shooting is required to find out and complete missing configurations. Moreover, configuration is to be established in a way that links between HQ-R1 and ISP-R1 can be used as the preferred path for reaching AS 2.
Below are tasks to be achieved to include the missing commands and complete the troubleshooting.
Correct Answer:
Task 1: Configure BGP for AS 1 and Establish EBGP Peering with ISP-R1 and ISP-R2 To establish an EBGP relationship between HQ-R1 and ISP-R1/ISP-R2 on HQ-R1:
router bgp 1
neighbor 192.168.12.2 remote-as 2
neighbor 192.168.13.2 remote-as 2
router bgp 1: Enables BGP for AS 1 on HQ-R1.
neighbor <IP> remote-as 2: Establishes an EBGP session with the neighbors ISP-R1 (192.168.12.2) and ISP-R2 (192.168.13.2).
Task 2: Advertise Loopback0 Interface Prefix in BGP
To advertise the loopback interface (e.g., Loopback0) into BGP on HQ-R1:
router bgp 1
network <L0 IP> mask <L0 Subnet>
Example (assuming Loopback0 IP is 192.168.10.1/24):
router bgp 1
network 192.168.10.0 mask 255.255.255.0
The network command specifies which prefix (L0) to advertise into BGP.
Task 3: Configure a Route Map Named loc to Set Local Preference to 900
To set the local preference attribute to 900 using a route map on HQ-R1:
route-map loc permit 10
set local-preference 900
route-map loc permit 10: Creates a route map named loc.
set local-preference 900: Sets the local preference to 900, which influences route selection.
Task 4: Prefer the Path via ISP-R1 for Reaching AS 2
To prefer the link between HQ-R1 and ISP-R1 as the preferred path on HQ-R1:
router bgp 1
neighbor 192.168.12.2 route-map loc in
neighbor 192.168.12.2 route-map loc in: Applies the loc route map inbound on the session with ISP-R1 (192.168.12.2).
This sets the local preference to 900 for routes received from ISP-R1, making it the preferred path.
Verification Commands
Verify BGP Neighbors: show ip bgp summary
Expected output: Neighbors 192.168.12.2 and 192.168.13.2 should be Up.
Verify Advertised Routes: show ip bgp
Confirm the Loopback0 prefix is advertised.
Verify Local Preference: show ip bgp neighbors 192.168.12.2 received-routes Check that the local preference is 900 for routes from ISP-R1.
Complete Configuration Summary on HQ-R1:
router bgp 1
neighbor 192.168.12.2 remote-as 2
neighbor 192.168.13.2 remote-as 2
network 192.168.10.0 mask 255.255.255.0
neighbor 192.168.12.2 route-map loc in
route-map loc permit 10
set local-preference 900
The local preference value of 900 ensures that routes from ISP-R1 are preferred over ISP-R2.
The Loopback0 prefix is successfully advertised into BGP.
The BGP sessions to ISP-R1 and ISP-R2 are established as required.