Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


davidcole

6029 posts

Uber Geek

Trusted

#205449 13-Nov-2016 22:12
Send private message

With hyper v, coukd I create a guest vm with a DNS server (maybe openwrt or something) that could be a DNS server for a 2nd vlan (for a guest network), so I can run it in a different subnet?

How would the vm be set up to have a lan and wan side? The nics in question would be the same ones used by other guests, so I'd rather not force those nics to be used only by that one vm.

Any other way I Vcoukd get a second dhcp server on my network for this guest network.?




Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Create new topic

This is a filtered page: currently showing replies marked as answers. Click here to see full discussion.

davidcole

6029 posts

Uber Geek

Trusted

  #1676272 23-Nov-2016 17:32
Send private message

So to answer my own question yes.

 

I made a linux ubuntu minimal install VM in hyper-v and gave it two network cards.  Both are attached to the physical card in the server.  

 

The first, ie the wan side, is left alone.  The 2nd, ie the LAN side, has VLAN5 on it (done in the hyper-v settings)

 

I then followed a bunch of guides, to add the two NICs to the VM, WAN side (eth0) on DHCP, LAN side (eth1) with static 10.1.1.1

 

I then added dhcp on the 10.1.1.0 network on the eth1 nic, with a DHCP range of 10.1.1.50 - 10.1.1.100.  I added name servers of 192.168.10.1 (my main gateway).

 

Then I added iptables rules to allow routing between eth1 to eth0.

 

Lastly in unifi controller I made the 10.1.1.1 network on vlan 5.

 

Finally after a bit of toing and froing, I managed to get both an internal vm and a guest on the guest ssid to pick up dhcp.

 

I can now look at putting in restrictions on my network - which I'd done with the unifi already, but now my gateway can control it, and I can add quotas etc.

 

 





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.