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

6099 posts

Uber Geek
+1 received by user: 1465

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

6099 posts

Uber Geek
+1 received by user: 1465

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








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.