When you create a downlink port on a tier-1 logical router, the port serves as a default gateway for the VMs that are in the same subnet.

Prerequisites

Verify that a tier-1 logical router is configured. See Create a Tier-1 Logical Router.

Procedure

  1. Click the tier-1 logical router link to create ports.
  2. Click the Configuration tab.
  3. Click Add under the Logical Router Ports section.
  4. Assign a name for the logical router port.
  5. Select whether this attachment creates a switch port or updates an existing switch port.

    If the attachment is for an existing switch port, select the port from the drop-down menu.

  6. Enter the router port IP address in CIDR notation.

    For example, the IP address can be 172.16.10.1/24.

    You can also enter a preconfigured DHCP service IP address.

  7. Click Save.
  8. (Optional) : Repeat steps 1-7 for creating additional tier-1 logical router ports.
  9. Verify that the tier-1 logical router can route East-West VM traffic.

    In this example, the tier-1 logical router has two downlink ports that connect to two logical switches. Each logical switch has a VM attached. The VMs can ping each other.

    web-virtual-machine$ ping 172.16.20.10
    PING 172.16.20.10 (172.16.20.10): 56(84) data bytes
    64 bytes from 172.16.20.10: icmp_req=0 ttl=64 time=178 ms
    ^C
    --- 172.16.20.10 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 178 ms/178 ms/178 ms/0.000 ms
    app-virtual-machine$ ping 172.16.10.10
    PING 172.16.10.10 (172.16.10.10): 56(84) data bytes
    64 bytes from 172.16.10.10: icmp_req=0 ttl=64 time=178 ms
    ^C
    --- 172.16.10.10 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 178 ms/178 ms/178 ms/0.000 ms

What to do next

Enable route advertisement to provide North-South connectivity between VMs and external physical networks or between different tier-1 logical routers that are connected to the same tier-0 logical router. See Configure Route Advertisement on a Tier-1 Logical Router.