A segment is a logical switch that VMs can connect to. A tier-1 gateway routes traffic between segments. A tier-0 gateway connects tier-1 gateways to a physical router so that segments have external connectivity.
Note: The object names and configuration values that are used in the steps below are example values mentioned in Preparing the Environment. Replace them with names and values that are appropriate for your environment.
Create a VLAN Segment to Connect to the Physical Router
- In NSX Manager, go to .
- Click Add Segment.
- Provide the following information.
Segment Name External-segment-1 Connected Gateway None Transport Zone nsx-vlan-transportzone VLAN 50
Create a Tier-0 Gateway
- In NSX Manager, go to .
- Click Add Tier-0 Gateway.
- Enter a name for the gateway, for example, T0-gateway-1.
- Select the HA (high availability) mode Active Standby.
- Select the Edge cluster Edge-cluster-1.
- Click Save and continue configuring this gateway.
- Click Interfaces and click Set.
- Click Add Interface.
- Enter a name, for example, IP1-EdgeNode1.
- Enter the IP address 192.168.50.11/24.
- In the Connected To (Segment) field, select External-segment-1.
- In the Edge Node field, select Edge-1.
- Save the changes.
- Repeat steps 8-13 to configure a second interface called IP2-EdgeNode2. The IP address should be 192.168.50.12/24. The Edge Node should be Edge-2.
- In the HA VIP Configuration field, click Set to create a virtual IP for the tier-0 gateway.
- Enter the IP address 192.168.50.13/24.
- Select the interfaces IP1-EdgeNode1 and IP2-EdgeNode2.
- Save the changes.
Configure Routing on the Physical Router and Tier-0 Gateway
- On the physical router, configure a static route to the subnets 10.1.1.0/24, 10.1.2.0/24, and 10.2.1.0/24 via 192.168.50.13, which is the virtual IP address of the tier-0 gateway's external interface.
- In NSX Manager, go to .
- Edit T0-gateway-1.
- Under Set and click Add Static Route. , click
- In the Name field, enter default.
- In the Network field, enter 0.0.0.0/0.
- Click Set Next Hops.
- In the IP Address field, enter 192.168.50.1.
- Click Add.
- Save the changes.
Alternatively, you can configure dynamic routes. For more information, see the NSX-T Data Center Administration Guide.
Create Two Tier-1 Gateways
- In NSX Manager, go to .
- Click Add Tier-1 Gateway.
- Provide the following information.
Tier-1 Gateway Name T1-gateway-1 Edge Cluster Edge-cluster-1 Linked Tier-0 Gateway T0-gateway-1 - Under Route Advertisement, enable All Connected Segments & Service Ports.
- Save the changes.
- Repeat steps 2-5 and create T1-gateway-2. Specify the same edge cluster.
Create Three Overlay Segments for VMs
- In NSX Manager, go to .
- Click Add Segment.
- Provide the following information.
Segment Name LS1.1 Connected Gateway T1-gateway-1 Transport Zone nsx-overlay-transportzone Subnets 10.1.1.1/24 Note: For an overlay segment that is attached to a tier-1 gateway, in the Subnets field, specify an IP address for the tier-1 gateway. This address will be the default gateway for VMs attached to this segment.
- Repeat steps 2-3 and create LS1.2 (Subnets: 10.1.2.1/24, Connected Gateway: T1-gateway-1) and LS2.1 (Subnets: 10.2.1.1/24, Connected Gateway: T1-gateway-2).
- Verify that LS1.1, LS1.2, and LS2.1 are created under the appropriate VDS in VC.