SP NETWORKING ACADEMY - BGP-009 ROUTE ADVERTISEMENT AND WITHDRAWAL Execution time: 2026-11-13 16:33:15.635996 ============================================================================== ============================================================================== SP NETWORKING ACADEMY - BGP-009 ROUTE ADVERTISEMENT AND WITHDRAWAL ============================================================================== Execution started: 2026-11-13 16:32:22.800558 Origin router: R2 Origin AS: 65002 Test prefix: 172.16.2.2/32 Authentication: Automatic ============================================================================== [INFO] PHASE 1 - INITIAL PREFIX BASELINE [INFO] Connecting to R1 (10.0.31.1) [PASS] SSH connected to R1 [PASS] R1: Prefix 172.16.2.2/32 is present [INFO] Connecting to R2 (10.0.32.1) [PASS] SSH connected to R2 [PASS] R2: Prefix 172.16.2.2/32 is present [INFO] Connecting to R3 (10.0.33.1) [PASS] SSH connected to R3 [PASS] R3: Prefix 172.16.2.2/32 is present [INFO] Connecting to R4 (10.0.34.1) [PASS] SSH connected to R4 [PASS] R4: Prefix 172.16.2.2/32 is present [PASS] Initial prefix baseline verified on all routers [INFO] Connecting to R2 (10.0.32.1) [PASS] SSH connected to R2 [INFO] Checking BGP network statement on R2 [PASS] R2: Origin network statement verified ============================================================================== PHASE 3 - BGP PREFIX WITHDRAWAL ============================================================================== [INFO] Removing advertisement of 172.16.2.2/32 from R2 configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router bgp 65002 R2(config-router)#no network 172.16.2.2 mask 255.255.255.255 R2(config-router)#end R2# [PASS] R2: BGP network statement removed ============================================================================== PHASE 4 - VERIFY ROUTE WITHDRAWAL ============================================================================== [INFO] Waiting for BGP withdrawal propagation | Attempt 1/18 [INFO] Checking prefix state on all routers [INFO] Connecting to R1 (10.0.31.1) [PASS] SSH connected to R1 [PASS] R1: Prefix 172.16.2.2/32 is withdrawn [INFO] Connecting to R2 (10.0.32.1) [PASS] SSH connected to R2 [PASS] R2: Prefix 172.16.2.2/32 is withdrawn [INFO] Connecting to R3 (10.0.33.1) [PASS] SSH connected to R3 [PASS] R3: Prefix 172.16.2.2/32 is withdrawn [INFO] Connecting to R4 (10.0.34.1) [PASS] SSH connected to R4 [PASS] R4: Prefix 172.16.2.2/32 is withdrawn [PASS] All four routers verified the expected prefix state [PASS] Prefix withdrawal verified on all four routers ============================================================================== PHASE 5 - RESTORE BGP ADVERTISEMENT ============================================================================== [INFO] Connecting to R2 (10.0.32.1) [PASS] SSH connected to R2 [INFO] Restoring 172.16.2.2/32 on R2 configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router bgp 65002 R2(config-router)#network 172.16.2.2 mask 255.255.255.255 R2(config-router)#end R2# [PASS] R2: Network advertisement restored ============================================================================== PHASE 6 - VERIFY PREFIX RECOVERY ============================================================================== [INFO] Waiting for BGP prefix re-advertisement | Attempt 1/18 [INFO] Checking prefix state on all routers [INFO] Connecting to R1 (10.0.31.1) [PASS] SSH connected to R1 [INFO] R1: Prefix state not yet as expected --- DEVICE OUTPUT BEGIN --- % Network not in table --- DEVICE OUTPUT END --- [INFO] Connecting to R2 (10.0.32.1) [PASS] SSH connected to R2 [PASS] R2: Prefix 172.16.2.2/32 is present [INFO] Connecting to R3 (10.0.33.1) [PASS] SSH connected to R3 [INFO] R3: Prefix state not yet as expected --- DEVICE OUTPUT BEGIN --- % Network not in table --- DEVICE OUTPUT END --- [INFO] Connecting to R4 (10.0.34.1) [PASS] SSH connected to R4 [PASS] R4: Prefix 172.16.2.2/32 is present [INFO] Waiting 5 seconds for BGP convergence [INFO] Waiting for BGP prefix re-advertisement | Attempt 2/18 [INFO] Checking prefix state on all routers [INFO] Connecting to R1 (10.0.31.1) [PASS] SSH connected to R1 [PASS] R1: Prefix 172.16.2.2/32 is present [INFO] Connecting to R2 (10.0.32.1) [PASS] SSH connected to R2 [PASS] R2: Prefix 172.16.2.2/32 is present [INFO] Connecting to R3 (10.0.33.1) [PASS] SSH connected to R3 [PASS] R3: Prefix 172.16.2.2/32 is present [INFO] Connecting to R4 (10.0.34.1) [PASS] SSH connected to R4 [PASS] R4: Prefix 172.16.2.2/32 is present [PASS] All four routers verified the expected prefix state [PASS] Prefix recovery verified on all four routers ============================================================================== BGP-009 EXECUTION SUMMARY ============================================================================== Checks passed: 20 Checks failed: 0 Infrastructure errors: 0 FINAL STATUS: PASS Single consolidated report: /home/user/network-automation/BGP/REPORTS/BGP-009-ROUTE-ADVERTISEMENT-20261113_163222.txt ============================================================================== ============================================================================== BGP-009 EXECUTION SUMMARY ============================================================================== Checks passed: 20 Checks failed: 0 Infrastructure errors: 0 FINAL STATUS: PASS Report: /home/user/network-automation/BGP/REPORTS/BGP-009-ROUTE-ADVERTISEMENT-20261113_163222.txt