Technical Tip: FortiLink over P2P wireless bridge/mesh
| Description | This article describes how to bring a managed FortiSwitch over a P2P wireless bridge/mesh link. |
| Scope | FortiGate, FortiSwitch, and FortiAP version 7.x. |
| Solution | Refer to the following config example:
Setup: FortiGate- FortiSwitch(Switch1)port7 - FortiAP433F <---Mesh link--->FortiAP433F- FortiSwitch(Switch2)port7.
Port7 has native VLAN1.
Configuration:
Important: The command below (switch-mgmt-mode) is not applicable for FortiSwitch versions 7.2 and above. See the following document: Special notices 7.2.0.
config system global set switch-mgmt-mode fortilink end
config switch global set fortilink-p2p-native-vlan 1 end
config switch-controller global set ac-discovery-type auto end
Here, VLAN1 is configured because APs are connected to native VLAN 1.
config switch physical-port edit "port7" set fortilink-p2p enable end
Since the p2p native VLAN is configured as 1, the FortiLink VLAN 4094 will be tagged between the FortiSwitches. As a result, it is necessary to ensure that Leaf AP tags the VLAN 4094. Configure the following parameters on the Leaf AP:
cfg -a MESH_ETH_BRIDGE=1 cfg -c
Multiple VLANs can be added using a comma.
The output of the Inter-Switch Link (ISL) trunk FortiLink interface on both FortiSwitches is below. Note that the VLAN 4094 is tagged.
Switch1:
show switch trunk edit "S124EFxxxx699-0" set auto-isl 1 set static-isl enable --> Make sure to enable static-isl. next
show switch interface edit "S124EFxxxx699-0" set allowed-vlans 1,39,50,99,4088-4094
Switch2:
show switch trunk edit "S124EFxxxx159-0" set auto-isl 1 set static-isl enable --> Make sure to enable static-isl. next
show switch interface S124EFxxxx159-0 edit "S124EFxxxx159-0" set allowed-vlans 1,39,50,99,4088-4094 next end
FortiGate:
execute switch-controller get-conn-status FortiLink interface : FortiLnk-ha
For FortiAP and FortiSwitch versions 7.2.x and above, make the following configuration changes:
cfg -a ADDR_MODE=STATIC cfg -a AP_IPADDR=x.x.x.x <-- This is the IP address of the leaf AP. cfg -a AP_NETMASK=y.y.y.y <-- This is the subnet mask. cfg -a IPGW=x.x.x.y <-- This is the default gateway. cfg -c
config system interface edit internal set mode static set ip x.x.x.x y.y.y.y <-- Where x.x.x.x is the IP address and y.y.y.y is the subnet mask. end
config router static edit 1 set status enable set gateway x.x.x.x <-- Where x.x.x.x is the FortiLink interface IP address on the FortiGate. set device internal end
config system ntp config ntpserver edit 1 set server x.x.x.x <-- Where x.x.x.x is the FortiLink interface IP address on the FortiGate. end end
config switch auto-network set mgmt-vlan 4094 set status enable end
Note that without this last configuration, FortiLink will come up successfully, but users depending on DHCP assignment from FortiLink-associated VLANs will not work correctly.
Some network administrators might change the mgmt-vlan for a different value. This value can be checked on FortiGate as follows:
show system interface | grep "_default" -f show full system interface <fortilink interface name> | grep mgmt-vlan
Related documents: Page 43: FortiLink over a point-to-point layer-2 network: FortiSwitch Devices Managed by FortiOS 7.0 Refer to the following document link for the FortiAP mesh configuration: Setting up a mesh connection between FortiAP units |


