# Using a hEX S as a VLAN

**URL:** <https://forum.mikrotik.com/t/using-a-hex-s-as-a-vlan/261876>\
**Category:** General\
**Created:** [June 19, 2025, 10:42am UTC](https://forum.mikrotik.com/t/using-a-hex-s-as-a-vlan/261876 "2025-06-19T10:42:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jaclaz](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/jaclaz/32/55652_2.png) [@jaclaz](https://forum.mikrotik.com/u/jaclaz)\
**Post date:** [June 19, 2025, 5:26pm UTC](https://forum.mikrotik.com/t/using-a-hex-s-as-a-vlan/261876/10 "2025-06-19T17:26:39Z")

</div>

> [@Mase](#):
>
> ```auto
> # Interface Lists
> /interface list
> add name=Teltonika-Ports
> add name=WAN
> 
> /interface list member
> add interface=ether1 list=WAN
> add interface=ether3 list=Teltonika-Ports
> add interface=ether4 list=Teltonika-Ports
> add interface=ether5 list=Teltonika-Ports
> 
> # IP Configuration
> /ip address
> add address=192.168.88.1/24 interface=bridge comment="Main Access IP"
> add address=192.168.88.2/32 interface=bridge comment="Teltonika 1 Access"
> add address=192.168.88.3/32 interface=bridge comment="Teltonika 2 Access"
> add address=192.168.88.4/32 interface=bridge comment="Teltonika 3 Access"
> add address=192.168.1.1/24 interface=ether3 comment="Teltonika 1 Internal"
> add address=192.168.1.1/24 interface=ether4 comment="Teltonika 2 Internal"
> add address=192.168.1.1/24 interface=ether5 comment="Teltonika 3 Internal"
> 
> ```

Well, you have more than one thing mixed up.  
You are seemingly following the method in the post lurker888 suggested, but when you follow a method, follow it completely.  
The Teltonika devices that you connect (respectively) to ether2, ether3 and ether4 will have address 192.168.1.1.  
So assign to ether2, ether3 and ether4 addresses 192.168.1.2/24, 192.168.1.3/24, 192.168.1.4/24 (you can add to all of them the same address, say 192.168.1.100, but it will be easier to get confused).  
Then you are connecting to the Hex S via ether1, so you need to assign to ether1 192.168.88.1.  
You have NO bridge in your configuration (which is good) but then you assign IP addresses 192.168.88.1, .2, .3 and .4 to the bridge (with a /32 netmask, that makes little sense).  
You have the mangle rules in pre-routing that mark connections with destination 192.168.88.2, .3 and .4, OK.  
Where are the other mangle rules?  
You have the routing rules that send marked packets to the specific table, OK.  
You have the dst-nat rules that change on the fly the destination addresses to 192.168.1.1, OK.

Compare again your setup with the one linked to by lurker888 or - possibly easier - with the “final” version posted here:

> [@Quick Guide: Bidirectional 1:1 NAT (SNAT, DNAT) Setup w/ working example](https://forum.mikrotik.com/t/quick-guide-bidirectional-1-1-nat-snat-dnat-setup-w-working-example/183024):
>
> Intro Setting up bidirectional 1:1 NAT in RouterOS allows you to create static mappings between external and internal IP addresses. This configuration is useful when you need multiple internal (LAN) devices to be accessible via specific external (WAN) IPs. There is a special twist though, since in this particular setup all internal devices are using the same IP address (this was a mandatory requirements since we were not able to change the IP addresses on any of those devices). This quick guid…

---

_[View the full topic](https://forum.mikrotik.com/t/using-a-hex-s-as-a-vlan/261876)._
