INC-3569 · P1 · Multi-cloud & hybrid · AWS Direct Connect · VIF privée · AWS Site-to-Site VPN · Azure ExpressRoute · FRRouting (BGP) · AWS CLI v2 · Azure CLI

Step-by-step fix: Since last night, the AWS applications can no longer reach headquarters, while Azure works

A production incident replayed in a simulated terminal, with its complete resolution: the commands the on-call engineer ran, what they printed, the root cause and the fix. This is exactly the reasoning expected in a DevOps, SRE or Linux administrator job interview.

Try it yourself first in the terminal (free)

The ticket

The MasterLinux headquarters in Toulouse hosts the ERP (erp.masterlinux.lab, 10.20.12.10) and the directory. Its core router ml-rt-coeur-01 (FRRouting, AS 65010) advertises over BGP the networks of headquarters and branches to two clouds:

  • AWS (eu-west-3, VPC masterlinux-prod 10.60.0.0/16) through Direct Connect 1 Gbit/s (private VIF vif-prod-siege), with an AWS site-to-site VPN as backup (two BGP tunnels);
  • Azure (francecentral, VNet vnet-prod-frc 10.70.0.0/16) through ExpressRoute (private peering).

Last night at 23:30, change CHG-2241 was applied on ml-rt-coeur-01: new VLANs for the new headquarters floor and a “clean-up” of the BGP configuration. The change was declared successful at 23:40: the sessions to Azure were established.

Since 23:34, the enrolment application ml-app-aws-01 (AWS) can no longer reach the ERP: all of the night's enrolments are queued, and the branches open at 08:00. The trainers' portal ml-app-azure-01 (Azure) works. The link provider states that the fibre and the equipment are healthy.

You are the on-call network engineer, on ml-bastion (AWS CLI v2 and Azure CLI configured, SSH access to the router and the applications). Restore the path to AWS and make sure it does not happen again.

Step by step: the commands and their output

These are the commands the engineer typed, in order, with what the machine answered.

  1. ops@ml-bastion:~$ aws directconnect describe-connections
    {
        "connections": [
            {
                "ownerAccount": "731846205913",
                "connectionId": "dxcon-fg5k8z2a",
                "connectionName": "dx-toulouse-siege-1g",
                "connectionState": "available",
                "region": "eu-west-3",
                "location": "EqPA3",
                "bandwidth": "1Gbps",
                "awsDeviceV2": "EqPA3-2t5f8ne1k3x9",
                "awsLogicalDeviceId": "EqPA3-2t5f8ne1k3x9",
                "hasLogicalRedundancy": "unknown",
                "macSecCapable": false,
                "portEncryptionStatus": "Encryption Down",
                "encryptionMode": "no_encrypt",
                "jumboFrameCapable": true
            }
        ]
    }
  2. ops@ml-bastion:~$ aws directconnect describe-virtual-interfaces
    {
        "virtualInterfaces": [
            {
                "ownerAccount": "731846205913",
                "virtualInterfaceId": "dxvif-ffx3k2m9",
                "location": "EqPA3",
                "connectionId": "dxcon-fg5k8z2a",
                "virtualInterfaceType": "private",
                "virtualInterfaceName": "vif-prod-siege",
                "vlan": 402,
                "asn": 65010,
                "amazonSideAsn": 64512,
                "authKey": "****",
                "amazonAddress": "169.254.61.1/30",
                "customerAddress": "169.254.61.2/30",
                "addressFamily": "ipv4",
                "virtualInterfaceState": "available",
                "mtu": 1500,
                "jumboFrameCapable": true,
                "virtualGatewayId": "vgw-0b7c3e19a2d4f6085",
                "directConnectGatewayId": "",
                "routeFilterPrefixes": [],
                "bgpPeers": [
                    {
                        "bgpPeerId": "dxpeer-fh2k7v1q",
                        "asn": 65010,
                        "authKey": "****",
                        "addressFamily": "ipv4",
                        "amazonAddress": "169.254.61.1/30",
                        "customerAddress": "169.254.61.2/30",
                        "bgpPeerState": "available",
                        "bgpStatus": "down",
                        "awsDeviceV2": "EqPA3-2t5f8ne1k3x9",
                        "awsLogicalDeviceId": "EqPA3-2t5f8ne1k3x9"
                    }
                ],
                "region": "eu-west-3",
                "awsDeviceV2": "EqPA3-2t5f8ne1k3x9",
                "awsLogicalDeviceId": "EqPA3-2t5f8ne1k3x9",
                "tags": [ { "key": "Name", "value": "vif-prod-siege" } ],
                "siteLinkEnabled": false
            }
        ]
    }
  3. ops@ml-bastion:~$ aws ec2 describe-vpn-connections --query 'VpnConnections[].VgwTelemetry'
    [
        [
            {
                "AcceptedRouteCount": 0,
                "LastStatusChange": "2026-10-19T22:34:21+00:00",
                "OutsideIpAddress": "15.237.104.18",
                "Status": "DOWN",
                "StatusMessage": "IPSEC IS UP"
            },
            {
                "AcceptedRouteCount": 0,
                "LastStatusChange": "2026-10-19T22:34:22+00:00",
                "OutsideIpAddress": "35.181.62.209",
                "Status": "DOWN",
                "StatusMessage": "IPSEC IS UP"
            }
        ]
    ]
  4. ops@ml-bastion:~$ aws ec2 describe-security-groups --group-ids sg-04d7a2c9e18b3f560
    {
        "SecurityGroups": [
            {
                "GroupId": "sg-04d7a2c9e18b3f560",
                "GroupName": "sg-inscriptions-app",
                "IpPermissionsEgress": [
                    { "IpProtocol": "-1", "IpRanges": [ { "CidrIp": "0.0.0.0/0" } ] }
                ],
                "IpPermissions": [
                    { "IpProtocol": "tcp", "FromPort": 443, "ToPort": 443, "IpRanges": [ { "CidrIp": "10.20.0.0/16", "Description": "siege" } ] },
                    { "IpProtocol": "tcp", "FromPort": 22, "ToPort": 22, "IpRanges": [ { "CidrIp": "10.60.0.10/32", "Description": "ml-bastion" } ] }
                ]
            }
        ]
    }
    
    (Simulation: NACL acl-0e51b9d3a7c2f4806, rule 100 ALLOW 10.20.0.0/16 inbound and outbound, unchanged since 02/06/2026.)
  5. ops@ml-bastion:~$ aws ec2 describe-route-tables --filters Name=vpc-id,Values=vpc-0c18e5a7b3d94f261 --query 'RouteTables[].Routes'
    [
        [
            { "DestinationCidrBlock": "10.60.0.0/16", "GatewayId": "local", "Origin": "CreateRouteTable", "State": "active" },
            { "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": "nat-0a9f2c7e4b1d38655", "Origin": "CreateRoute", "State": "active" }
        ]
    ]
  6. ops@ml-bastion:~$ az network express-route list-route-tables -g rg-reseau -n er-masterlinux-toulouse --peering-name AzurePrivatePeering --path primary -o table
    Network           NextHop        LocPrf    Weight    Path
    ----------------  -------------  --------  --------  ------
    10.20.0.0/24      172.16.40.2              0         65010
    10.20.1.0/24      172.16.40.2              0         65010
    10.20.2.0/24      172.16.40.2              0         65010
    …
    10.20.147.0/24    172.16.40.2              0         65010
    10.20.250.0/24    172.16.40.2              0         65010
    10.21.0.0/16      172.16.40.2              0         65010
    10.22.0.0/16      172.16.40.2              0         65010
    10.23.0.0/16      172.16.40.2              0         65010
    192.168.100.0/24  172.16.40.2              0         65010
    
    (Simulation: 142 routes received from headquarters. ExpressRoute private peering limit: 4,000 prefixes on Standard, 10,000 on Premium.)
  7. ops@ml-bastion:~$ ssh ops@ml-app-aws-01
    Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1018-aws x86_64)
    Last login: Mon Oct 19 17:12:40 2026 from 10.60.0.10
  8. ops@ml-app-aws-01:~$ curl -sS -m 10 https://erp.masterlinux.lab:8443/api/health
    curl: (28) Failed to connect to erp.masterlinux.lab port 8443 after 10002 ms: Timeout was reached
  9. ops@ml-app-aws-01:~$ exit
    logout
    Connection to ml-app-aws-01 closed.
  10. ops@ml-bastion:~$ ssh ops@ml-app-azure-01
    Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1015-azure x86_64)
    Last login: Fri Oct 16 11:03:27 2026 from 10.20.250.5
  11. ops@ml-app-azure-01:~$ curl -sS -m 10 https://erp.masterlinux.lab:8443/api/health
    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {"service":"erp","statut":"ok","version":"12.4.2"}
  12. ops@ml-app-azure-01:~$ exit
    logout
    Connection to ml-app-azure-01 closed.
  13. ops@ml-bastion:~$ ssh ops@ml-rt-coeur-01
    Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-125-generic x86_64)
    FRRouting 9.1.2 - ml-rt-coeur-01 (coeur de reseau siege)
    Last login: Mon Oct 19 23:41:06 2026 from 10.20.250.5
  14. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'show bgp summary'
    IPv4 Unicast Summary (VRF default):
    BGP router identifier 10.20.255.1, local AS number 65010 vrf-id 0
    BGP table version 2291
    RIB entries 291, using 56 KiB of memory
    Peers 5, using 99 KiB of memory
    
    Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
    169.254.61.1    4      64512    118402    121977        0    0    0 00:00:52       Active        0 aws-dx-vif-prod
    169.254.10.1    4      64512     40211     40388        0    0    0 00:01:37       Active        0 aws-vpn-t1
    169.254.11.1    4      64512     40196     40371        0    0    0 00:01:37       Active        0 aws-vpn-t2
    172.16.40.1     4      12076     38811     36120     2291    0    0 3d04h11m            3      142 azure-er-primary
    172.16.40.5     4      12076     38790     36112     2291    0    0 3d04h11m            3      142 azure-er-secondary
    
    Total number of neighbors 5
  15. ops@ml-rt-coeur-01:~$ ping -c 3 169.254.61.1
    PING 169.254.61.1 (169.254.61.1) 56(84) bytes of data.
    64 bytes from 169.254.61.1: icmp_seq=1 ttl=64 time=4.81 ms
    64 bytes from 169.254.61.1: icmp_seq=2 ttl=64 time=4.79 ms
    64 bytes from 169.254.61.1: icmp_seq=3 ttl=64 time=4.80 ms
    
    --- 169.254.61.1 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2003ms
    rtt min/avg/max/mdev = 4.790/4.800/4.810/0.008 ms
  16. ops@ml-rt-coeur-01:~$ sudo ethtool -m enp65s0f0
    Identifier                                : 0x03 (SFP)
    Transceiver type                          : 10G Ethernet: 10G Base-LR
    Laser wavelength                          : 1310nm
    Laser bias current                        : 33.120 mA
    Laser output power                        : 0.5821 mW / -2.35 dBm
    Receiver signal average optical power     : 0.4410 mW / -3.56 dBm
    Module temperature                        : 38.21 degrees C / 100.78 degrees F
    Laser rx power high alarm                 : Off
    Laser rx power low alarm                  : Off
    
    enp65s0f0.402@enp65s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
        RX:  bytes packets errors dropped  missed   mcast
        8812044161 9120477      0       0       0       0
        TX:  bytes packets errors dropped carrier collsns
        9930125540 9811302      0       0       0       0
  17. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'show bgp neighbors 169.254.61.1'
    BGP neighbor is 169.254.61.1, remote AS 64512, local AS 65010, external link
     Description: aws-dx-vif-prod
      BGP version 4, remote router ID 0.0.0.0, local router ID 10.20.255.1
      BGP state = Active
      Last read 00:00:53, Last write 00:00:53
      Hold time is 90, keepalive interval is 30 seconds
      Configured hold time is 90, keepalive interval is 30 seconds
      Message statistics:
        Inq depth is 0
        Outq depth is 0
                             Sent       Rcvd
        Opens:                 31         31
        Notifications:          0         30
        Updates:              244         60
        Keepalives:        121702     118281
        Total:             121977     118402
      Minimum time between advertisement runs is 0 seconds
    
     For address family: IPv4 Unicast
      Outbound path policy configured
      Route map for outgoing advertisements is *RM-AWS-OUT
      0 accepted prefixes
    
      Connections established 31; dropped 31
      Last reset 00:00:53,  Notification received (Cease/Maximum Number of Prefixes Reached)
    BGP Connect Retry Timer in Seconds: 120
    Next connect timer due in 67 seconds
    Read thread: off  Write thread: off  FD used: -1
  18. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'show bgp ipv4 unicast neighbors 172.16.40.1 advertised-routes'
    BGP table version is 2291, local router ID is 10.20.255.1, vrf id 0
    Default local pref 100, local AS 65010
    Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
                   i internal, r RIB-failure, S Stale, R Removed
    Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
    Origin codes:  i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
    
        Network          Next Hop            Metric LocPrf Weight Path
     *> 10.20.0.0/24     0.0.0.0                  0         32768 ?
     *> 10.20.1.0/24     0.0.0.0                  0         32768 ?
     *> 10.20.2.0/24     0.0.0.0                  0         32768 ?
     *> 10.20.3.0/24     0.0.0.0                  0         32768 ?
     …
     *> 10.20.146.0/24   0.0.0.0                  0         32768 ?
     *> 10.20.147.0/24   0.0.0.0                  0         32768 ?
     *> 10.20.250.0/24   0.0.0.0                  0         32768 ?
     *> 10.21.0.0/16     10.20.255.21             0         32768 ?
     *> 10.22.0.0/16     10.20.255.22             0         32768 ?
     *> 10.23.0.0/16     10.20.255.23             0         32768 ?
     *> 192.168.100.0/24 0.0.0.0                  0         32768 ?
    
    Total number of prefixes 142
  19. ops@ml-rt-coeur-01:~$ sudo git -C /etc/frr log -p -1
    commit 4be1c07a93d2e85f6a1b0c47d2f19e8a3c5b7d60
    Author: deploy <deploy@masterlinux.lab>
    Date:   Mon Oct 19 23:30:47 2026 +0100
    
        CHG-2241 : VLAN plateau 3 (10.20.140.0/24 a 10.20.147.0/24) + nettoyage BGP
    
    diff --git a/frr.conf b/frr.conf
    --- a/frr.conf
    +++ b/frr.conf
    @@ -38,12 +38,11 @@ router bgp 65010
      neighbor 172.16.40.5 description azure-er-secondary
      !
      address-family ipv4 unicast
    -  aggregate-address 10.20.0.0/16 summary-only
       redistribute connected route-map RM-LAN-SIEGE
       redistribute static route-map RM-LAN-SIEGE
       neighbor 169.254.61.1 route-map RM-AWS-OUT out
       neighbor 169.254.10.1 route-map RM-AWS-OUT out
       neighbor 169.254.11.1 route-map RM-AWS-OUT out
    @@ -61,6 +60,14 @@ ip prefix-list PL-SIEGE seq 5 permit 10.20.0.0/16 le 24
    +interface vlan140
    +interface vlan141
    +…
    +interface vlan147
  20. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'conf t' -c 'router bgp 65010' -c 'address-family ipv4 unicast' -c 'aggregate-address 10.20.0.0/16 summary-only'
  21. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'show bgp ipv4 unicast 10.20.0.0/16'
    BGP routing table entry for 10.20.0.0/16, version 2297
    Paths: (1 available, best #1, table default)
      Advertised to non peer-group peers:
      172.16.40.1 172.16.40.5
      Local, (aggregated by 65010 10.20.255.1)
        0.0.0.0 from 0.0.0.0 (10.20.255.1)
          Origin incomplete, metric 0, weight 32768, valid, aggregated, local, atomic-aggregate, best (First path received)
          Last update: Tue Oct 20 07:31:12 2026
    
    (Simulation: the 138 /24 headquarters routes are hidden by summary-only; 5 prefixes will be advertised to each neighbour.)
  22. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'show bgp neighbors 169.254.61.1'
    BGP neighbor is 169.254.61.1, remote AS 64512, local AS 65010, external link
     Description: aws-dx-vif-prod
      BGP state = Active
      Connections established 31; dropped 31
      Last reset 00:02:11,  Notification received (Cease/Maximum Number of Prefixes Reached)
    BGP Connect Retry Timer in Seconds: 120
    Next connect timer due in 29 seconds
    
    (Simulation: the configuration is fixed, but the session is still waiting for its next connection attempt. Reset this neighbour alone so it restarts right away with 5 prefixes.)
  23. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'clear bgp 169.254.61.1'
  24. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'clear bgp 169.254.10.1' -c 'clear bgp 169.254.11.1'
  25. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'write memory'
    Note: this version of vtysh never writes vtysh.conf
    Building Configuration...
    Integrated configuration saved to /etc/frr/frr.conf
    [OK]
  26. ops@ml-rt-coeur-01:~$ sudo vtysh -c 'show bgp summary'
    IPv4 Unicast Summary (VRF default):
    BGP router identifier 10.20.255.1, local AS number 65010 vrf-id 0
    BGP table version 2302
    RIB entries 297, using 57 KiB of memory
    Peers 5, using 99 KiB of memory
    
    Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
    169.254.61.1    4      64512    118409    121985     2302    0    0 00:01:04            2        5 aws-dx-vif-prod
    169.254.10.1    4      64512     40218     40396     2302    0    0 00:00:58            2        5 aws-vpn-t1
    169.254.11.1    4      64512     40203     40379     2302    0    0 00:00:58            2        5 aws-vpn-t2
    172.16.40.1     4      12076     38834     36146     2302    0    0 3d04h16m            3        5 azure-er-primary
    172.16.40.5     4      12076     38813     36138     2302    0    0 3d04h16m            3        5 azure-er-secondary
    
    Total number of neighbors 5
  27. ops@ml-rt-coeur-01:~$ exit
    logout
    Connection to ml-rt-coeur-01 closed.
  28. ops@ml-bastion:~$ aws directconnect describe-virtual-interfaces
    {
        "virtualInterfaces": [
            {
                "virtualInterfaceId": "dxvif-ffx3k2m9",
                "virtualInterfaceName": "vif-prod-siege",
                "virtualInterfaceState": "available",
                "vlan": 402,
                "bgpPeers": [
                    {
                        "bgpPeerId": "dxpeer-fh2k7v1q",
                        "asn": 65010,
                        "addressFamily": "ipv4",
                        "amazonAddress": "169.254.61.1/30",
                        "customerAddress": "169.254.61.2/30",
                        "bgpPeerState": "available",
                        "bgpStatus": "up"
                    }
                ],
                "region": "eu-west-3"
            }
        ]
    }
  29. ops@ml-bastion:~$ ssh ops@ml-app-aws-01
    Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1018-aws x86_64)
    Last login: Mon Oct 19 17:12:40 2026 from 10.60.0.10
  30. ops@ml-app-aws-01:~$ curl -sS -m 10 https://erp.masterlinux.lab:8443/api/health
    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {"service":"erp","statut":"ok","version":"12.4.2"}
  31. ops@ml-app-aws-01:~$ exit
    logout
    Connection to ml-app-aws-01 closed.

What the commands revealed

Root cause

CHG-2241 removed the 10.20.0.0/16 aggregation: the router advertises 142 prefixes, AWS closes the private VIF session (and the VPN tunnels) beyond 100, while Azure accepts 4,000

Physically, everything is healthy: the Direct Connect connection is available, the optics receive -3.56 dBm, and the AWS neighbour 169.254.61.1 answers ping. The security groups and the NACL have not changed. The problem is higher up, in BGP: the VIF is available but bgpStatus is down, and FRR receives, at each attempt, the Cease/Maximum Number of Prefixes Reached notification sent by AWS.

AWS limits to 100 IPv4 prefixes per BGP session the advertisements received on a private VIF (and on a site-to-site VPN): beyond that, the session is closed. Last night's change removed aggregate-address 10.20.0.0/16 summary-only: instead of 5 prefixes, the router advertises 142 (138 /24 headquarters subnets, plus 4 networks). The backup VPN falls for the same reason: it cannot take over. ExpressRoute accepts up to 4,000 prefixes on private peering: Azure keeps working, which made everyone believe the change had succeeded.

Analysis and fix

Repair (on ml-rt-coeur-01):

  1. restore the aggregation: sudo vtysh -c 'conf t' -c 'router bgp 65010' -c 'address-family ipv4 unicast' -c 'aggregate-address 10.20.0.0/16 summary-only';
  2. check what will be advertised: show bgp ipv4 unicast 10.20.0.0/16 and the advertisements to an established neighbour (5 prefixes);
  3. restart only the AWS sessions: sudo vtysh -c 'clear bgp 169.254.61.1' (then the two VPN tunnels);
  4. save: sudo vtysh -c 'write memory';
  5. check: show bgp summary (AWS sessions established, PfxSnt 5), aws directconnect describe-virtual-interfaces (bgpStatus: up), describe-vpn-connections (UP, 5 routes), the VPC route table (propagated routes) and the call to the ERP from ml-app-aws-01. Tell the application team so they can drain the enrolment queue.

Prevention:

  • strict outbound filter to AWS: ip prefix-list PL-AWS-OUT permit 10.20.0.0/16 (without le 24), with the same logic for each network, so that an aggregation mistake can never let the /24s out;
  • monitoring alert on the number of prefixes sent per neighbour (threshold at 80 for AWS) and on the VIF's bgpStatus (CloudWatch metric VirtualInterfaceBpsEgress / peer state);
  • review of network changes by a second engineer, with a “advertisements before / after” test;
  • a change is “successful” only after checking all paths, not just one cloud.

In a job interview

This kind of outage often comes up in technical interviews ("the site returns an error, what do you do?"). What is assessed: start from the symptoms, check each layer with the right command, prove the cause before fixing it, then prevent it from happening again. MasterLinux trains you on 195 incidents like this one, from beginner to expert.

Try it yourself first in the terminal (free)

Unlock every production simulation

AWS, Azure, Google Cloud, on-premise and multi-cloud, from Beginner to Extreme: the real incidents of IT service companies and large IT organisations, available for a year.

Other free walkthroughs