EMAC VLANs to share ISP connection over VDOMs - Confusion after handbook and KB
- July 8, 2021
- 1 reply
- 4964 views
Dear All,
I'll try to keep this as short as possible, my hardware is 1500D running 6.0. With this design I'm trying to:
* Share two ISP connections across multiple VDOMs (named VD_APPA, VD_APPB, VD_APPY, VD_APPZ)
* All VDOMs are layer 3 (NAT mode)
* Need to run BGP to the North and South, so different MAC needed for each FGT virtual IF
* North and South switch ports to be a trunk and will have /27 assigned so several peerings can run across the vlan
I've attached a diagram and abbreviated config outline to help visualise it.
Having read the handbook I'm still a bit confused about the following:
[ol]The VLAN ID and interface must be a unique pair, even if they belong to different VDOMs.[/ol]
That has really confused me, because I need to stretch VLANs 100 and 200 across multiple VDOMs and run a peering up to the switch. I thought whole purpose of EMACs was to share a single VLAN over multiple VDOMs and to provide unique MACs on each EMAC IF.
4. On the south side, I don’t believe EMAC is necessary because the VLANs aren't being stretched - the physical port is simply a trunk and each VLAN leads to a separate VDOM.
Thank you to anyone who read through this. Maybe I have a misunderstanding of what EMAC does? I would be very grateful for any advice.
Kind regards
James.
# Approximate Cisco Config:
interface Eth1/1
switchport trunk allowed vlan 100,200
exit
inter vlan 100
vrf isp100
ip address 10.0.0.14/27
exit
router bgp 65001
vrf isp100
neighbor 10.0.0.0/27
address-family ipv4 unicast
[...]
exit
exit
exit
exit
---
Approximate FGT Config:
config sys interface
edit port1
set descr To:SwitchA-Eth1/1
set vdom "root"
exit
edit port1.100
set vdom "root"
set vlanid 100
set interface "port1"
exit
edit port1.100a
set vdom "VD_APPA"
set ip 10.0.0.1 255.255.255.224 # Will source BGP peering up to Cisco SVI 100
set type emac-vlan
set interface "port1.100"
exit
edit port1.100b
set vdom "VD_APPB"
set ip 10.0.0.2 255.255.255.224 # Will source BGP peering up to Cisco SVI 100
set type emac-vlan
set interface "port1.100"
exit
[...]
end
