Skip to main content
TheCourier
New Member
May 14, 2023
Question

Fortigate 7.2.4 - Vlan interface with same IP/subnet of Hardware Switch Interface

  • May 14, 2023
  • 1 reply
  • 5241 views

Hey,

 

i have a Hardware Switch interface configured with a primary IP and 2 secondaries IPs

 

To that interface i want to add 2 vlans.

 

vlan #1 will use the same primary IP and same first secondary IP that are configured in the mentioned above Hardware Switch interface.

 

vlan #2 will use the same primary IP and same secondary IP that are configured in the mentioned above Hardware Switch interface.

 

I've reached to this design with the understanding there wont be a duplicate IP because the packets are tagged with different vlan ID. 

 

I need to do this design in order to not change the IPs and network configuration of the hosts but still separate them to 2 groups, each one by different vlans and the other third group remain untagged.

 

Trying to fix security of a production environment with a few customers environments in it...

 

Thank you.

1 reply

akristof
Staff
Staff
May 15, 2023

Hello,

Yes, they will be separated by "vlan tag" but you will need to enable subnet-overlap:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Enable-subnet-overlap-to-set-IP-addresses-of/ta-p/191639

Plus you will need to be careful not to allow traffic between vlans or if you will have any incoming traffic (for example VIP), then the routing will be weird. Maybe consider using vrfs

TheCourier
New Member
May 15, 2023

I understand this about overlapping subnets but im talking about that the vlan sub-interface IP will be the same as the physical interface that's the vlan's belongs to. Not a different IP with the same prefix as the technical tip you provided is about.