https://rancher.com/ logo
Title
w

wonderful-helicopter-16401

05/15/2022, 3:54 AM
I'm confused by what I am seeing in VM networking. When I create a new VM, DHCP is assigning the same IP to every new VM. First point of confusion is that there isn't a DHCP server available outside the cluster and I haven't installed one inside yet. So where is this DHCP address coming from? It's also a specific /24 cidr that I often use in lab networks, so I am curious if I set that subnet somewhere during install. Note that I am using one NIC with a public IP. Is this expected behavior?
s

square-orange-60123

05/16/2022, 12:59 AM
my best guess is, since there’s no DHCP on your network, it is finding the only ‘available’ address in your network and using that one. You can check the status of your network under the
advanced
->
network
tab. There, you should see a page of the network(s) you’ve created and their status (it should say whether or not dhcp is working or not). tldr, we’re expecting dhcp to work on your network if you don’t have static IPs setup iirc.
f

full-football-64901

05/16/2022, 3:27 AM
Is your VM in "management network" type?
w

witty-jelly-95845

05/16/2022, 7:25 AM
Is this after configuring VLAN 1 as per your previous question?
w

wonderful-helicopter-16401

05/16/2022, 11:41 AM
Slickwarren, thank you. There's no DHCP on the network, so I'll poke around for where that's at. I will also set up a second cluster to better document my own steps made on this one.
Date, yes. I just tested with the VLAN 1, and it's not happening there. So, I'm sure it's related to the steps taken/config during install.
Simon, TBH, I just now tested this with the VLAN 1 and it doesn't happen when connected to that at creation. Swapping a test machine's network has the expected behavior of failing to get an address at reboot and requiring me to set one. So, I just need to figure out where that initial IP on mgmt is coming from and make sure I haven't goofed the config.
Slickwarren, for VLAN 1, I don't see route connectivity, but I have it set as manual to a /16. So, I am guessing that's expected? That's in
Advanced
>
Networks
We were hoping we wouldn't have to, but I have reconfigured this PoC network to include a vlan aware switch. Thanks for tips.