VLAN on ER8411 router and TL-SG1218MPE switch.

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

VLAN on ER8411 router and TL-SG1218MPE switch.

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
VLAN on ER8411 router and TL-SG1218MPE switch.
VLAN on ER8411 router and TL-SG1218MPE switch.
2022-12-17 07:57:49 - last edited 2022-12-19 10:19:57
Model: TL-SG1218MPE   ER8411  
Hardware Version: V4
Firmware Version: 1.0.0 Build 20220310 Rel.73883

I have an ER8411 router and a TL-SG1218MPE switch. I'd like to create a new VLAN 20 that uses IP range 10.20.0.0/16. For now, I'm just trying to get the basic configuration working.

 

The setup that I want is this:

  • All devices plugged into the switch should be on VLAN 20
  • I should still be able to reach the switch from VLAN 1 in order to manage it.
  • The ER8411's port 7 is connected to the TL-SG1218MPE's port 18.
  • Devices on VLAN 20 should still be able to access some new VLANs I'm planning to create, but not all of them. That's a future thing though - I guess I'll need firewall rules for that. For now I'm just trying to get a super basic setup working.

 

On the ER8411

Network > LAN > Network List, added a new LAN with this configuration:

IP Address: 10.20.0.1

Subnet mask: 255.255.0.0

VLAN: 20

DHCP Mode: DHCP Server

Starting IP: 10.20.2.1

Ending IP: 10.20.2.255

 

Network > VLAN > VLAN List:

Added a new VLAN with VLAN ID 20 and ports set to 7 (TAG)

 

I modified VLAN 1 so that port 7 is TAG rather than UNTAG
I set the PVID for port 7 to VLAN 20

 

 

On the TL-SG1218MPE

VLAN > 802.1Q VLAN:

Enabled it

Added VLAN 20 with 1-17 as untagged ports and 18 as tagged port

Edited VLAN 1 to only have port 18 as a member, as a tagged port

 

What works

I'm able to access the switch from a computer in VLAN 1.

 

What's broken

I connected a computer to a port on the switch for testing.

  • DHCP isn't working
  • If I configure a static IP manually, I can ping other computers connected to the same switch, but I can't ping the gateway (10.20.0.1) - it just times out. Because of that, I also can't ping any devices on VLAN 1 either. I've read conflicting information about whether devices on different VLANs can reach each other by default.

 

Any ideas? Am I doing something obviously wrong?

 

Thanks!

https://d.sb/ My setup: 10Gbps fiber internet, ER8411, 2 x EAP670, Mikrotik CRS312-4C+8XG-RM, Omada software controller in Docker.
  0      
  0      
#1
Options
1 Accepted Solution
Re:VLAN on ER8411 router and TL-SG1218MPE switch.-Solution
2022-12-17 13:12:13 - last edited 2022-12-19 10:19:57

  @Dan15 

 

ER8411

Port 7: TAGGED in VLAN20, UNTAGGED in VLAN1, PVID=1

 

TL-SG1218MPE

Port 18: TAGGED in VLAN20, UNTAGGED in VLAN1, PVID=1 (Needs to match Port 7 above)

Ports 1-17: UNTAGGED in VLAN20, PVID=20!

 

What do you need so big subnet for?

Kris K
Recommended Solution
  2  
  2  
#2
Options
2 Reply
Re:VLAN on ER8411 router and TL-SG1218MPE switch.-Solution
2022-12-17 13:12:13 - last edited 2022-12-19 10:19:57

  @Dan15 

 

ER8411

Port 7: TAGGED in VLAN20, UNTAGGED in VLAN1, PVID=1

 

TL-SG1218MPE

Port 18: TAGGED in VLAN20, UNTAGGED in VLAN1, PVID=1 (Needs to match Port 7 above)

Ports 1-17: UNTAGGED in VLAN20, PVID=20!

 

What do you need so big subnet for?

Kris K
Recommended Solution
  2  
  2  
#2
Options
Re:VLAN on ER8411 router and TL-SG1218MPE switch.
2022-12-17 20:27:13

  @KJK  Thank you! I think this is the main part I was missing:

 

Ports 1-17: UNTAGGED in VLAN20, PVID=20!

 

After following your guidance, it's working.

 

KJK wrote

What do you need so big subnet for?

 

To organise everything. Right now I use a numbering scheme like 10.VLANID.Type.Host: 10.0.0.x for networking equipment, 10.0.1.x for statically assigned addresses, and 10.0.2.x for DHCP-assigned addresses on the default VLAN, 10.20.0.x, 10.20.1.x and 10.20.2.x on VLAN 20, etc. I might change it eventually.

https://d.sb/ My setup: 10Gbps fiber internet, ER8411, 2 x EAP670, Mikrotik CRS312-4C+8XG-RM, Omada software controller in Docker.
  0  
  0  
#3
Options