Upon completion of reading this article readers should grasp the concept of how port remapping works in the UniFi Network Controller.
Table of Contents
Previous to the port remapping implementation in the controller, port assignments on the UniFi Security Gateway were static. Port remapping allows a user to be able to assign networks and LAN/WAN functions to any port available. With port remapping the following configurations are possible:
USG (3 port)
- 1 WAN port and 2 LAN ports
- 2 WAN ports and 1 LAN port
USG Pro 4
- 1 WAN port and up to 3 LAN ports.
- 2 WAN ports and up to 2 LAN ports.
- The eth2 and eth3 ports are shared ports in which a user can use either RJ45 or SFP ports for functions.
- The eth2 and eth3 ports are not available for manual link settings. They are set to autonegotiate but can step down to 10/100.
- 1 WAN port and up to 8 LAN ports
- 2 WAN port and up to 7 LAN ports
The SFP+ ports on the USG-XG-8 are hardware linked in blocks of 4 PHYs.
- This makes speed/duplex settings on eth1 apply to eth2, eth3, and eth4. eth5 settings will apply to eth6, eth7, and eth8.
- Autonegotiation on the USG-XG-8 will work as 10G.
Steps: How to Configure Port Remapping
Port Group Assignment in Networks
- In the UniFi Network Controller, navigate to Settings > Networks > Edit, or Create Network for a new network.
- View the "Port Group" delegation and make a selection for your network. This delegation allows a user to be able to break up networks into logical groups that can be applied on physical interfaces.
- After making the port group assignment click Save.
Port Group Assignment on USG
- Navigate to the USG properties side panel by clicking on the USG in question in the Devices screen.
- Select the Ports tab.
- Make a delegation on the port group that is desired to operate on a physical interface.
- Click apply after all changes are done.
Testing & Verification
Verification can be done a couple ways. One way is to look at the icon indicators on the ports in the UI. The other way is in the command line interface. Both are shown below.
Testing & Verification in the GUI
Open the Properties Panel of the device by clicking on it from the Devices page, and navigate to the Ports section.
Before port remapping:
After port remapping:
Testing & Verification in the Command Line Interface (CLI)
- SSH to the USG with a preferred SSH client.
- Type the command:
The show interfaces command will show you which networks/IPs are on each physical interface.