Cloudflare Docs
Magic WAN
Edit this page on GitHub
Set theme to dark (⇧+D)

Routed Subnets

Each LAN interface (physical port + VLAN tag) on a Magic WAN Connector is part of a directly-attached subnet. When you specify a static address for the LAN interface, you indicate both the interface’s address as well as the subnet it attaches to. For example, means the LAN interface has the IP address, and is part of the subnet

Some LANs are more complex. In addition to the directly-attached subnet, they might have additional subnets sitting behind L3 routers south of the Magic WAN Connector. We call these routed subnets.

Refer to the diagram below for an example of how this might work:

To add a routed subnet to your LAN, you need:

  • A prefix: The subnet’s CIDR prefix; Cloudflare will automatically install static routes to this prefix in our global network (to forward packets for this subnet to the right Connector), and in your Connector (to forward packets for this subnet to the right LAN interface). In the figure above, the routed subnet in the center has the prefix
  • A next-hop address: The address of the L3 router to which the Connector should forward packets for this subnet. In the figure, the routed subnet in the center has the next-hop address

Optionally, you can also enable NAT for a subnet by providing a static overlay prefix.

​​ Create routed subnets

For more information on how to create routed subnets, refer to Create a LAN, either in Configure hardware Connector or Configure virtual Connector.