AWS Direct Connect with Private VIF and BGP configuration
AWS Direct Connect gives organisations a dedicated private path into AWS that never touches the public internet — no jitter from congested transits, no reliance on a single ISP for critical workloads. For most Australian teams the shape is familiar: a cross-connect at a Sydney or Melbourne colocation facility, a private virtual interface on top of it, and a BGP session with your own router so you control the ASN and the advertisements.
This walkthrough follows the whole path — ordering the port, creating the AWS objects, designing the peering, configuring Cisco IOS-XE and JunOS, then proving the route end to end. It also covers the snags that keep turning up down under: cross-connects booked at the wrong port speed, an MTU of 9000 on one side and 1500 on the other, and BGP sessions that flap for no obvious reason at three in the morning.
What Direct Connect actually provides
A dedicated connection gives you a physical port — 1 Gbps or 10 Gbps — that you own and split into virtual interfaces with your own VLAN tags. A hosted connection buys a slice of a carrier's existing port, usually cheaper and often fractional, with the carrier handling the physical layer while you still create the virtual interfaces. Either way, the private VIF is the piece that puts your on-premises network inside a VPC.
AWS will not attach a private VIF straight to a VPC. It attaches to a Direct Connect gateway, and that gateway associates with either a virtual private gateway for a single VPC or a Transit Gateway for multiple VPCs, accounts and central routing. For anything beyond one VPC, Transit Gateway is the sensible choice, and it keeps Australian workloads inside the Region you selected.
Choosing an Australian connection point
Two AWS Regions matter locally: ap-southeast-2 in Sydney and ap-southeast-4 in Melbourne. AWS publishes a long list of Australian Direct Connect locations — Equinix SY1, SY3 and SY4, Equinix ME1 and ME2 in Melbourne, plus Global Switch and Digital Realty facilities — and not every one of them offers 10 Gbps or the port capacity you need. Telstra, Optus, TPG and Vocus (the former Megaport) sell either the cross-connect itself or hosted capacity on their own gear, while AARNet serves the research and education market.
Geography drives purchasing here too. Land in Melbourne while your applications sit in Sydney and you have bought roughly 20 milliseconds of round-trip time, plus an entertaining argument about which data centre is the real one. Diversity also rules: a second circuit at a different facility from a different carrier beats extra capacity on one link, and no Australian network team is keen to explain why both paths share a single rack.
Building the AWS-side objects
Create the Direct Connect gateway in the Region you intend to use, then the private VIF, then the association to a Transit Gateway or virtual private gateway. The private VIF form is where mistakes cluster: pick the location, allocate a VLAN ID that matches your router config, and enter your own ASN as the customer router ASN. Leave the Amazon-side ASN at the default 64512 unless you have a specific reason.
AWS then assigns a /29 for the peering with a handful of reserved addresses inside it, so treat those as session infrastructure rather than usable host space. Routing is controlled from the Transit Gateway configuration: associate the VPC subnets with it and confirm the default route back towards the DX gateway exists, or on-premises traffic will dead-end somewhere inside AWS.
Interface types compared
Three virtual interface types turn up on Australian order forms, and the differences matter more than the AWS console makes obvious:
| Feature | Private VIF | Hosted VIF | Public VIF |
|---|---|---|---|
| Carries | Private VPC traffic | Private VPC traffic | AWS public IP space |
| Physical port | You own 1 or 10 Gbps | Provider owns it | Dedicated or hosted |
| VLAN | Yours to allocate | Yours to allocate | Yours |
| AWS attachment | Direct Connect gateway | Direct Connect gateway | Internet gateway |
| Typical local buyer | Telstra, Optus enterprise | Vocus, Equinix Fabric | Carrier and ISP transit |
Private VIF is the one you want for internal traffic. Public VIFs hand you native AWS public IP space and have nothing to do with private routing, while hosted VIFs trade control of the physical port for cheaper fractional capacity.
Designing the BGP session
Two things make or break a private VIF peering: the ASN arrangement and the timers. Your ASN should be a private ASN in the 64512–65534 range or your own registered public ASN, but never 64512 itself because that is AWS's default Amazon-side value. To authenticate the session, configure an MD5 password on both ends; it is not encryption, but it stops a stray peer injecting routes.
AWS advertises a default route towards your router, and you advertise your on-premises prefixes back. AWS does not filter what you send it, so be disciplined: summarise internal networks, never redistribute a default route from your own core into the peering, and use prefix lists locally to keep the accepted routes clean. Keepalives of 30 seconds with a 180-second hold time is a common starting point, more forgiving of transient carrier trouble than the 30/90 default.
Configuring and verifying the customer router
On Cisco IOS-XE the session is short. Use a loopback as the update source, allow enough hops for the /29, and match the MD5 password character for character:
router bgp 65000
bgp log-neighbor-changes
neighbor 169.254.10.1 remote-as 64512
neighbor 169.254.10.1 password <md5-password>
neighbor 169.254.10.1 ebgp-multihop 4
neighbor 169.254.10.1 update-source Loopback0
address-family ipv4
neighbor 169.254.10.1 activate
On JunOS the same design lives under protocols bgp, with the local address bound to a loopback and a policy filtering what you advertise. Keep that configuration in version control — an Ansible run beats a hand edit made during an arvo on a Friday.
Verification starts at the router: show ip bgp summary should show Established rather than merely Active, and the default route should appear in the routing table. From an instance in the VPC, resolve DNS to 169.254.169.253, run a traceroute and confirm the Local route for the Direct Connect gateway exists. If the session refuses to pair up, treat it like the lobster's forced coupling — both parties have to actually agree before anything moves.
Checklists for rollout and steady state
Steady-state network work is mostly habit, and these two checklists capture the habits worth keeping. Rehearsing the design in FRRouting inside GNS3 or EVE-NG costs nothing and gives new engineers somewhere safe to break things.
Before you cut over:
- Confirm the port speed and cross-connect capacity match the Private VIF ordered
- Verify the VLAN ID matches on the AWS VIF and the router subinterface
- Check that advertised prefixes are summarised and no default route leaks in
- Agree a maintenance window that falls outside peak Sydney business hours
Once traffic is flowing:
show ip bgp summaryshows Established with uptime you recognise- The VPC route table shows the Local route for the Direct Connect gateway
- Traceroute from the VPC exits via the on-premises router, not the internet gateway
- CloudWatch error rate and packet loss metrics stay flat, and MTU is 9000 end to end