I have an Ubuntu 20.04 LTS server at home which I use as a media server and other entertaining purposes, inside which I have installed Google's 2 factor authentication and with external access via zerotier "vpn".
Recently I got the idea of getting some courses done, like AD, Intune, Networking, therefore I have built 3 VM's (kvm with Cockpit interface). One is a domain controller and the other 2 I will find out when I will start the course, but the thing is that I want to have them on a separate subnet, so I installed a DHCP server on my DC.
The problem is that I have no idea what I should do to my other 2 VM's so they can grab an IP from my dhcp server.
I'm using Network manager instead on netplan because otherwise Cockpit functionality gets diminished.
Not sure what info to give, so I will flip coins here (sorry, my Linux skills are noob-ish)
Routing table:
|Destination | Gateway | Genmask | Flags | Metric | Ref | Use | Iface |
|--------------|---------|---------------|-------|--------|-----|-----|----------|
|default | Papoy | 0.0.0.0 | UG |425 | 0 | 0 |bridge0 |
|99.99.99.99 | 0.0.0.0 | 255.255.255.0 | U | 0 | 0 | 0 |zt9xj9gcr |
|192.168.0.0 | 0.0.0.0 | 255.255.255.0 | U | 425 | 0 | 0 |bridge0 |
|192.168.122.0 | 0.0.0.0 | 255.255.255.0 | U | 0 | 0 | 0 |virbr0 |
Ifconfig results
bridge0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.106 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::6c51:96ff:fe78:9ebe prefixlen 64 scopeid 0x20<link>
ether 1c:87:2c:5a:bf:7a txqueuelen 1000 (Ethernet)
RX packets 157835 bytes 34154594 (34.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 216368 bytes 141090979 (141.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 1c:87:2c:5a:bf:7a txqueuelen 1000 (Ethernet)
RX packets 167507 bytes 39708078 (39.7 MB)
RX errors 0 dropped 433 overruns 0 frame 0
TX packets 229885 bytes 145843194 (145.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7d00000-f7d20000
enp4s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f0:7d:68:b8:6e:4a txqueuelen 1000 (Ethernet)
RX packets 7432 bytes 3526456 (3.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12299 bytes 4869561 (4.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 136468 bytes 146307166 (146.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 136468 bytes 146307166 (146.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:4e:f9:2a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0-nic: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:4e:f9:2a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc54:ff:fe74:699e prefixlen 64 scopeid 0x20<link>
ether fe:54:00:74:69:9e txqueuelen 1000 (Ethernet)
RX packets 1051 bytes 539854 (539.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24917 bytes 6315156 (6.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc54:ff:fe8b:7317 prefixlen 64 scopeid 0x20<link>
ether fe:54:00:8b:73:17 txqueuelen 1000 (Ethernet)
RX packets 985 bytes 402656 (402.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20695 bytes 5296946 (5.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
My domain controller network settings:
I think a diagram would be a lot more helpful. It's what i can do with the equipment i have because neither my PC nor my server can run 6+ vms simultaneously, reason why i split them