Posted: Wed May 29, 2019 19:42 Post subject: R8500- VLAN Setup for Hyper-V Pihole Server
Hey guys! I am trying to setup a scenario where I can use 1 Wire connected to my Server as two different wires.
I am basically running PiHole in Hyper-V through a second NIC which gets routed to the Pihole VM and I'd very much like to eliminate that and have one LAN wire do both. I've tried to use the default switch option in Hyper-V but I then I end up with no DLNA connectivity to my Plex Server ( Non virtualized ) which is running on the same PC.
Basically, my network config looks like this right now
Modem/Router (192.168.0.0/24) which connects to -> DDWRT R8500 (LAN 192.168.1.0/24 - WAN 192.168.0.10) (All my devices are then connected to its 6 Ports)
Server-PC (192.168.1.14) and Server-NIC2 on 192.168.1.11 (External-Without allowing host to manage/share NIC)
I was hoping that there could be a way where I can setup VLAN's which would enable me to assign a VLAN value in the Hyper-V default switch, which in turn would keep the Plex DLNA server up and running as well and give the Pihole server its own interface.
Naturally, the Pihole VLAN has to be then accessible from all the other devices on my network as its gonna be doing the DNS resolution for everyone!
nvram set vlan3hwname="et2"
nvram set vlan1ports="1t 2 3 4 5 7 8"
nvram set vlan3ports="1t 8"
nvram set port1vlans="1 3 16 18 19 21"
Port 1 will be tagged with VLAN1 and VLAN3
You have to enter the same configuration at the other end of the cable.
Thanks for the fast reply and helping out man! I was just banging my head against the wall (Vlan-Wiki) and trying to figure this out but it gets real confusing real fast
So from my understanding of your commands... Port 1 (VLAN1) will have normal internet access as well as access to VLAN3
and Port 1(VLAN3) will also have normal internet access as well as access to VLAN1. Right?
EDIT: After trying tinker with the settings on the other end of the cable it seems like HyperV and using the default adapter for both normal internet access AND VLAN Access for a Virtual Machine doesn't really work I guess VLANs can be useful if you have a 2nd adapter and use that to bridge out many different Vlans to different VMs!
Last edited by sephddwrt on Sun Jun 02, 2019 16:30; edited 1 time in total
You must set an IP for VLAN 3 on the router. Does it show up in the Networking Page in the GUI?
VLAN1 will continue to work after you have tagged the network card on the client machine.
I manually assigned Vlan3 to bridge Br0 and that enabled DHCP. I tagged VlanID 1 to the NIC through BIOS and tagged Vlan3 to the settings in the HyperV. Afterward, VLAN3 worked perfectly, however, I had no connectivity on my main OS . Changing some settings around get both working but then No Plex DLNA connectivity (Which is the main reason I wanted to do the VLANs in the first place) I will try to troubleshoot this over the week when I have time to get this setup working!
Thanks for your help and for teaching me how to setup VLANs on DDWRT!
It's just hard to sit there and problem solve when you have people trying to use the Internet.