Configure NSX-T Logical Bridging (single profile): Difference between revisions
m (clean up) |
m (Change span border color) |
||
Line 3: | Line 3: | ||
=The Network Diagram= | =The Network Diagram= | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:Chapter 09-Bridging Components with IPs.png|800px]]</span> | ||
The goal of this article is to show you that the 172.16.30.12 IP address on VLAN 300 will be able to communicate with the 172.16.30.10 IP address on the NSX-T overlay using a Layer 2 Logical Bridge. | The goal of this article is to show you that the 172.16.30.12 IP address on VLAN 300 will be able to communicate with the 172.16.30.10 IP address on the NSX-T overlay using a Layer 2 Logical Bridge. | ||
Line 33: | Line 33: | ||
Go to the VDS and create a new port group. | Go to the VDS and create a new port group. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-1.png|400px]]</span> | ||
Give it a name. In my case, I named it "BRIDGE-TRUNK". | Give it a name. In my case, I named it "BRIDGE-TRUNK". | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-2.png|600px]]</span> | ||
Make the VLAN Type a "VLAN Trunk" and allow all VLANs here. | Make the VLAN Type a "VLAN Trunk" and allow all VLANs here. | ||
It is important that all the VLANs that you want to bridge are in this range. | It is important that all the VLANs that you want to bridge are in this range. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-3.png|600px]]</span> | ||
Make sure that all thee port group security settings are set to "Accept". | Make sure that all thee port group security settings are set to "Accept". | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-4.png|600px]]</span> | ||
Do not change anything here. | Do not change anything here. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-5.png|600px]]</span> | ||
Now move the second uplink to the "standby uplinks" section and leave the first uplink in the "active uplinks" section. | Now move the second uplink to the "standby uplinks" section and leave the first uplink in the "active uplinks" section. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-6.png|600px]]</span> | ||
Do not change anything here. | Do not change anything here. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-7.png|600px]]</span> | ||
Do not change anything here. | Do not change anything here. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-8.png|600px]]</span> | ||
Verify all your configuration settings and add the new port group. | Verify all your configuration settings and add the new port group. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-PG-9.png|600px]]</span> | ||
==STEP 2: Create a new NSX-T Transport Zone (dedicated for the bridge interface)== | ==STEP 2: Create a new NSX-T Transport Zone (dedicated for the bridge interface)== | ||
Line 75: | Line 75: | ||
Add a new VLAN Transport Zone. | Add a new VLAN Transport Zone. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-TZ-1.png|400px]]</span> | ||
Verify if the new Transport Zone is added. | Verify if the new Transport Zone is added. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-BRIDGE-TZ-2.png|800px]]</span> | ||
==STEP 3: Add the new Transport Zone (Bridge) to the existing Edge Transport Nodes== | ==STEP 3: Add the new Transport Zone (Bridge) to the existing Edge Transport Nodes== | ||
Line 87: | Line 87: | ||
Pay attention to the number of NVDSs (this is now 1) | Pay attention to the number of NVDSs (this is now 1) | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:ADD-TZ-TO-EDGE-1.png|800px]]</span> | ||
Let's add the new NVDS and transport zone to the first Edge transport Node. | Let's add the new NVDS and transport zone to the first Edge transport Node. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:ADD-TZ-TO-EDGE-2.png|400px]]</span> | ||
Let's add the new NVDS and transport zone to the second Edge transport Node. | Let's add the new NVDS and transport zone to the second Edge transport Node. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:ADD-TZ-TO-EDGE-3.png|400px]]</span> | ||
Verify if the number of NVDSs has increased to 2. | Verify if the number of NVDSs has increased to 2. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:ADD-TZ-TO-EDGE-4.png|800px]]</span> | ||
==STEP 4: Create a Bridge Profile== | ==STEP 4: Create a Bridge Profile== | ||
Line 107: | Line 107: | ||
NSX-T GUI: '''Networking >> Connectivity >> Segments >> Edge Bridge Profiles >> Add Edge Bridge Profile''' | NSX-T GUI: '''Networking >> Connectivity >> Segments >> Edge Bridge Profiles >> Add Edge Bridge Profile''' | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:ADD-BRIDGE-PROFILE.png|800px]]</span> | ||
==STEP 5: Configure a VLAN on the physical network with a gateway IP address== | ==STEP 5: Configure a VLAN on the physical network with a gateway IP address== | ||
Line 144: | Line 144: | ||
Go to the VDS and create a new port group. | Go to the VDS and create a new port group. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:CREATE-VLAN-PG-1.png|400px]]</span> | ||
Give it a name. In my case, I named it "Pod-120-VDS-VLAN300". | Give it a name. In my case, I named it "Pod-120-VDS-VLAN300". | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:VLAN300-1.png|600px]]</span> | ||
Make the VLAN Type a "VLAN" and type in VLAN 300 here. | Make the VLAN Type a "VLAN" and type in VLAN 300 here. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:VLAN300-4.png|600px]]</span> | ||
Verify all your configuration settings and add the new port group. | Verify all your configuration settings and add the new port group. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:VLAN300-5.png|600px]]</span> | ||
Verify if the VLAN port group with VLAN 300 is added | Verify if the VLAN port group with VLAN 300 is added | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:VLAN300-6.png|600px]]</span> | ||
===Create a Photon OS VM=== | ===Create a Photon OS VM=== | ||
Line 166: | Line 166: | ||
Deploy a new OVF Template from the Center Server Client. | Deploy a new OVF Template from the Center Server Client. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-1.png|400px]]</span> | ||
Select the local Photon OS ova file. | Select the local Photon OS ova file. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-2.png|800px]]</span> | ||
Provide a name for your Virtual Machine. | Provide a name for your Virtual Machine. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-3.png|800px]]</span> | ||
Select a computing resource where you want to deploy the VM to. | Select a computing resource where you want to deploy the VM to. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-4.png|800px]]</span> | ||
Review the details and just click next. | Review the details and just click next. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-5.png|800px]]</span> | ||
Accept the license agreement. | Accept the license agreement. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-6.png|800px]]</span> | ||
Select a storage resource where you want to deploy the VM to. | Select a storage resource where you want to deploy the VM to. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-7.png|800px]]</span> | ||
Select a networking resource that you want you're VM to be attached to. | Select a networking resource that you want you're VM to be attached to. | ||
Line 196: | Line 196: | ||
Review the details before you finish (screenshot not shown). | Review the details before you finish (screenshot not shown). | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-8.png|800px]]</span> | ||
Power on the new Virtual Machine. | Power on the new Virtual Machine. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-VLAN-VM-9.png|800px]]</span> | ||
===Network Configuration and Ping Tests=== | ===Network Configuration and Ping Tests=== | ||
Line 266: | Line 266: | ||
}} | }} | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:PING-30-1.png|600px]]</span> | ||
Here I do a quick ping towards my gateway to verify if we have network connectivity. | Here I do a quick ping towards my gateway to verify if we have network connectivity. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:PING-30-2.png|600px]]</span> | ||
==STEP 7: Configure a Segment as an overlay network (on NSX-T) with a gateway IP address by attaching it to a Tier-1 Gateway== | ==STEP 7: Configure a Segment as an overlay network (on NSX-T) with a gateway IP address by attaching it to a Tier-1 Gateway== | ||
Line 278: | Line 278: | ||
NSX-T Manager GUI: '''Networking >> Connectivity >> Segments >> Add Segment''' | NSX-T Manager GUI: '''Networking >> Connectivity >> Segments >> Add Segment''' | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:SEG-BRIDGE-1.png|800px]]</span> | ||
Verify if the Segment is correctly added. | Verify if the Segment is correctly added. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:SEG-BRIDGE-2.png|800px]]</span> | ||
==STEP 8: Create test Virtual Machines on this Segment to perform some ping tests== | ==STEP 8: Create test Virtual Machines on this Segment to perform some ping tests== | ||
Line 288: | Line 288: | ||
Deploy a new OVF Template from the Center Server Client. | Deploy a new OVF Template from the Center Server Client. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-1.png|400px]]</span> | ||
Select the local Photon OS ova file. | Select the local Photon OS ova file. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-2.png|800px]]</span> | ||
Provide a name for your Virtual Machine. | Provide a name for your Virtual Machine. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-3.png|800px]]</span> | ||
Select a computing resource where you want to deploy the VM to. | Select a computing resource where you want to deploy the VM to. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-4.png|800px]]</span> | ||
Review the details and just click next. | Review the details and just click next. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-5.png|800px]]</span> | ||
Accept the license agreement. | Accept the license agreement. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-6.png|800px]]</span> | ||
Select a storage resource where you want to deploy the VM to. | Select a storage resource where you want to deploy the VM to. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-7.png|800px]]</span> | ||
Select a networking resource that you want you're VM to be attached to. | Select a networking resource that you want you're VM to be attached to. | ||
Make sure you select the NSX-T (Bridge) overlay Segment you created. | Make sure you select the NSX-T (Bridge) overlay Segment you created. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-8.png|800px]]</span> | ||
Review the details before you finish. | Review the details before you finish. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-9.png|400px]]</span> | ||
Power on the new Virtual Machine. | Power on the new Virtual Machine. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:DEPLOY-BRIDGE-VM-10.png|800px]]</span> | ||
===Network Configuration and Ping Tests=== | ===Network Configuration and Ping Tests=== | ||
Line 402: | Line 402: | ||
There is a label there called "Edge Bridges" click on "Set" | There is a label there called "Edge Bridges" click on "Set" | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:BIND-BRIDGE-1.png|800px]]</span> | ||
Select the Edge Bridge Profile and the Transport Zone that you created earlier. | Select the Edge Bridge Profile and the Transport Zone that you created earlier. | ||
I have also added the VLAN 300 that I want to bridge to. | I have also added the VLAN 300 that I want to bridge to. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:BIND-BRIDGE-2.png|800px]]</span> | ||
Verify if the Edge Bridge is added. | Verify if the Edge Bridge is added. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:BIND-BRIDGE-3.png|800px]]</span> | ||
Verify if you see a little "1" in the Segment settings. | Verify if you see a little "1" in the Segment settings. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:BIND-BRIDGE-4.png|800px]]</span> | ||
==STEP 10: Perform some ping and traceroute tests between the VLAN and NSX-T Segment Virtual Machines== | ==STEP 10: Perform some ping and traceroute tests between the VLAN and NSX-T Segment Virtual Machines== | ||
Line 423: | Line 423: | ||
'''Open ICMP and UDP to allow ping and tracepath tests on the VLAN VM''' | '''Open ICMP and UDP to allow ping and tracepath tests on the VLAN VM''' | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:IPTAB-2.png|800px]]</span> | ||
'''Open ICMP and UDP to allow ping and tracepath tests on the OVERLAY VM''' | '''Open ICMP and UDP to allow ping and tracepath tests on the OVERLAY VM''' | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:IPTAB-1.png|800px]]</span> | ||
'''Tests from the VLAN VM to the OVERLAY VM''' | '''Tests from the VLAN VM to the OVERLAY VM''' | ||
Line 433: | Line 433: | ||
In the test below you can see that ping is working and that the tracepath is only showing one hop. | In the test below you can see that ping is working and that the tracepath is only showing one hop. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:PINGTEST-01.png|800px]]</span> | ||
'''Tests from the OVERLAY VM to the VLAN VM''' | '''Tests from the OVERLAY VM to the VLAN VM''' | ||
Line 439: | Line 439: | ||
For the other way around you can see (below) that ping is working and that the tracepath is also only showing one hop. | For the other way around you can see (below) that ping is working and that the tracepath is also only showing one hop. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:PINGTEST-02.png|800px]]</span> | ||
==STEP 11: Perform traceflow tests between the VLAN and NSX-T Segment Virtual Machines== | ==STEP 11: Perform traceflow tests between the VLAN and NSX-T Segment Virtual Machines== | ||
Line 445: | Line 445: | ||
I also tried to use traceflow to see if I could retrieve some information from there. | I also tried to use traceflow to see if I could retrieve some information from there. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:TF-01.png|800px]]</span> | ||
But unfortunately, traceflow does not support bridged traffic flow tests. | But unfortunately, traceflow does not support bridged traffic flow tests. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:TF-02.png|800px]]</span> | ||
==STEP 12: Looking at the bridge statistics== | ==STEP 12: Looking at the bridge statistics== | ||
Line 457: | Line 457: | ||
Click on "view statistics". | Click on "view statistics". | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:SEG-STATS-1.png|800px]]</span> | ||
Look at the statistics. | Look at the statistics. | ||
<span style="border:3px solid | <span style="border:3px solid #f4c613;display: inline-block;">[[File:SEG-STATS-2.png|800px]]</span> | ||
=YouTube Video= | =YouTube Video= |
Revision as of 19:59, 13 January 2024
In this wiki article, I will show you how to configure Layer 2 Bridging between a VLAN (on the physical network) and a Segment (overlay network) on NSX-T with the same subnet. The goal is to not route network traffic through the Tier-0 and Tier-1 Gateways but to bridge network traffic using Layer 2 Logical bridging.
The Network Diagram
The goal of this article is to show you that the 172.16.30.12 IP address on VLAN 300 will be able to communicate with the 172.16.30.10 IP address on the NSX-T overlay using a Layer 2 Logical Bridge.
The high-level steps
In this wiki article, the high level following steps will be discussed:
This wiki article assumes that you have already created a multi-tier Logical Routing topology with a Tier-0 and Tier-1 Gateway running on two Edge Transport Nodes.
- STEP 1: Create vDS Bridge Port-Group (TRUNK)
- STEP 2: Create a new NSX-T Transport Zone (dedicated for the bridge interface)
- STEP 3: Add the new Transport Zone (Bridge) to the existing Edge Transport Nodes
- STEP 4: Create a Bridge Profile
- STEP 5: Configure a VLAN on the physical network with a gateway IP address
- STEP 6: Create test Virtual Machines on this VLAN to perform some ping tests
- STEP 7: Configure a Segment as an overlay network (on NSX-T) with a gateway IP address by attaching it to a Tier-1 Gateway
- STEP 8: Create test Virtual Machines on this Segment to perform some ping tests
- STEP 9: Configure the overlay network (Segment) as a Layer 2 Bridge-Backed Segment
- STEP 10: Perform some ping and traceroute tests between the VLAN and NSX-T Segment Virtual Machines
- STEP 11: Perform traceflow tests between the VLAN and NSX-T Segment Virtual Machines
- STEP 12: Looking at the bridge statistics
The configuration steps
STEP 1: Create vDS Bridge Port-Group (TRUNK)
First, we need to create a VDS port group (on vSphere) that we will use for the Edge transport Node so that it can map one of the fast-path interfaces to this port group.
Go to the VDS and create a new port group.
Give it a name. In my case, I named it "BRIDGE-TRUNK".
Make the VLAN Type a "VLAN Trunk" and allow all VLANs here. It is important that all the VLANs that you want to bridge are in this range.
Make sure that all thee port group security settings are set to "Accept".
Do not change anything here.
Now move the second uplink to the "standby uplinks" section and leave the first uplink in the "active uplinks" section.
Do not change anything here.
Do not change anything here.
Verify all your configuration settings and add the new port group.
STEP 2: Create a new NSX-T Transport Zone (dedicated for the bridge interface)
Add a new Transport Zone dedicated to bridging.
NSX-T GUI: System >> Configuration >> Fabric >> Transport Zones >> +Add
Add a new VLAN Transport Zone.
Verify if the new Transport Zone is added.
STEP 3: Add the new Transport Zone (Bridge) to the existing Edge Transport Nodes
We now need to add an additional NVDS with that Transport Zone to the existing Edge Transport Nodes.
This is a list of my existing Edge Transport Nodes. Pay attention to the number of NVDSs (this is now 1)
Let's add the new NVDS and transport zone to the first Edge transport Node.
Let's add the new NVDS and transport zone to the second Edge transport Node.
Verify if the number of NVDSs has increased to 2.
STEP 4: Create a Bridge Profile
Now create a Bridge Profile.
NSX-T GUI: Networking >> Connectivity >> Segments >> Edge Bridge Profiles >> Add Edge Bridge Profile
STEP 5: Configure a VLAN on the physical network with a gateway IP address
I have used a virtual Vyatta Router that I have configured for networking. The configuration for the interfaces for Bridging is below.
configure set interfaces ethernet eth1 vif 300 address '172.16.30.1/24' set interfaces ethernet eth1 vif 300 description 'Bridge Test VLAN 300' set interfaces ethernet eth1 vif 300 mtu '1500' commit save
vyos@Pod-120-Router:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description ---- ---------- --- ----------- <...> eth1 - u/u eth1.300 172.16.30.1/24 u/u Bridge Test VLAN 300 <...> vyos@Pod-120-Router:~$
STEP 6: Create test Virtual Machines on this VLAN to perform some ping tests
Create VLAN 300 Port Group
Now, we need to create a VDS port group (on vSphere) to simulate the "external" VLAN 300.
Go to the VDS and create a new port group.
Give it a name. In my case, I named it "Pod-120-VDS-VLAN300".
Make the VLAN Type a "VLAN" and type in VLAN 300 here.
Verify all your configuration settings and add the new port group.
Verify if the VLAN port group with VLAN 300 is added
Create a Photon OS VM
Deploy a new OVF Template from the Center Server Client.
Select the local Photon OS ova file.
Provide a name for your Virtual Machine.
Select a computing resource where you want to deploy the VM to.
Review the details and just click next.
Accept the license agreement.
Select a storage resource where you want to deploy the VM to.
Select a networking resource that you want you're VM to be attached to. Make sure you select the VLAN 300 port group you created. Review the details before you finish (screenshot not shown).
Power on the new Virtual Machine.
Network Configuration and Ping Tests
When the VM is ready and power on we need to log in to the console and provide network settings. the first time you log in to a newly deployed Photon OS VM you need to change the password. The default username is "root" and the default password is "changeme".
Welcome to Photon 3.0 (x86_64) - Kernel 4.19.79-1.ph3-esx (tty1) photon-machine login: root Password: changeme You are required to change your password immediately (administrator enforced) Changing password for root. Current password: changeme New password: VMware1!VMware1! Retype new password: VMware1!VMware1!
Here we change the hostname.
root@photon-machine [ ~ ]# hostnamectl set-hostname l2b-vm-vlan
Here we create a network interface configuration file to specify the static IP address details for the network interface.
root@photon-machine [ ~ ]# vi /etc/systemd/network/10-static-en.network
This is the content of the "10-static-en.network" file.
[Match] Name=eth0 [Network] Address=172.16.30.12/24 Gateway=172.16.30.1
Here we change the rights to the file so the system is allowed to use it.
root@photon-machine [ ~ ]# chmod 644 /etc/systemd/network/10-static-en.network
Here we restart the networking service of the VM.
root@photon-machine [ ~ ]# systemctl restart systemd-networkd
Here we reboot the machine.
root@photon-machine [ ~ ]# reboot
When the machine is rebooted (with the new hostname) we can verify if the IP address is correct.
root@l2b-vm-vlan [ ~ ]# ip a
Here I do a quick ping towards my gateway to verify if we have network connectivity.
STEP 7: Configure a Segment as an overlay network (on NSX-T) with a gateway IP address by attaching it to a Tier-1 Gateway
Now we need to create a NSX-T Overlay segment that we are going to use to bridge VLAN 300 with.
NSX-T Manager GUI: Networking >> Connectivity >> Segments >> Add Segment
Verify if the Segment is correctly added.
STEP 8: Create test Virtual Machines on this Segment to perform some ping tests
Deploy a new OVF Template from the Center Server Client.
Select the local Photon OS ova file.
Provide a name for your Virtual Machine.
Select a computing resource where you want to deploy the VM to.
Review the details and just click next.
Accept the license agreement.
Select a storage resource where you want to deploy the VM to.
Select a networking resource that you want you're VM to be attached to. Make sure you select the NSX-T (Bridge) overlay Segment you created.
Review the details before you finish.
Power on the new Virtual Machine.
Network Configuration and Ping Tests
When the VM is ready and power on we need to log in to the console and provide network settings. the first time you log in to a newly deployed Photon OS VM you need to change the password. The default username is "root" and the default password is "changeme".
Welcome to Photon 3.0 (x86_64) - Kernel 4.19.79-1.ph3-esx (tty1) photon-machine login: root Password: changeme You are required to change your password immediately (administrator enforced) Changing password for root. Current password: changeme New password: VMware1!VMware1! Retype new password: VMware1!VMware1!
Here we change the hostname.
root@photon-machine [ ~ ]# hostnamectl set-hostname l2b-test-vm-nsx
Here we create a network interface configuration file to specify the static IP address details for the network interface.
root@photon-machine [ ~ ]# vi /etc/systemd/network/10-static-en.network
This is the content of the "10-static-en.network" file.
[Match] Name=eth0 [Network] Address=172.16.30.10/24 Gateway=172.16.30.1
We configure a gateway here, but this gateway will reside on the VLAN side and NOT on the NSX-T side.
Here we change the rights to the file so the system is allowed to use it.
root@photon-machine [ ~ ]# chmod 644 /etc/systemd/network/10-static-en.network
Here we restart the networking service of the VM.
root@photon-machine [ ~ ]# systemctl restart systemd-networkd
Here we reboot the machine.
root@photon-machine [ ~ ]# reboot
When the machine is rebooted (with the new hostname) we can verify if the IP address is correct.
root@l2b-test-vm-nsx [ ~ ]# ip a
STEP 9: Configure the overlay network (Segment) as a Layer 2 Bridge-Backed Segment
Now I need to enable the bridging between the NSX-T overlay Segment and the VLAN. I do this inside the actual overlay segment we want to use for bridging.
NSX-T GUI: NSX-T Manager GUI: Networking >> Connectivity >> Segments >> SEG-BRIDGE >> EDIT
There is a label there called "Edge Bridges" click on "Set"
Select the Edge Bridge Profile and the Transport Zone that you created earlier. I have also added the VLAN 300 that I want to bridge to.
Verify if the Edge Bridge is added.
Verify if you see a little "1" in the Segment settings.
STEP 10: Perform some ping and traceroute tests between the VLAN and NSX-T Segment Virtual Machines
Because I am using Photon OS I first need to open up some INBOUND IPTABLE rules on the Tenant Virtual Machines to allow ping and traceroute/tracepath.
Open ICMP and UDP to allow ping and tracepath tests on the VLAN VM
Open ICMP and UDP to allow ping and tracepath tests on the OVERLAY VM
Tests from the VLAN VM to the OVERLAY VM
In the test below you can see that ping is working and that the tracepath is only showing one hop.
Tests from the OVERLAY VM to the VLAN VM
For the other way around you can see (below) that ping is working and that the tracepath is also only showing one hop.
STEP 11: Perform traceflow tests between the VLAN and NSX-T Segment Virtual Machines
I also tried to use traceflow to see if I could retrieve some information from there.
But unfortunately, traceflow does not support bridged traffic flow tests.
STEP 12: Looking at the bridge statistics
There is also a way to look at the bridge statistics under the segment.
Click on "view statistics".
Look at the statistics.
YouTube Video
Comming soon
Technical Reviews
This article was technically reviewed by the following SME's:
Name | LinkedIn Profile |
---|---|
TBD | TBD |
TBD | TBD |
I am always trying to improve the quality of my articles so if you see any errors, mistakes in this article or you have suggestions for improvement, please contact me and I will fix this.