xoa setup static ip
-
There are 3 ways you can set up static IPs for XOA:
- At the router, just assign the mac address of your XOA VM to a static IP.
- At the XOA VM, you can't do this if you don't have access to other means of accessing your host that XOA VM runs, since you can't stop the VM to change the IP.
- At XOA's OS level, since XOA is based on Debian, you can change /etc/network/interfaces file to reflect your static ip.
It is probably best to use option 1 when you can.
-
1st option is the worst, 2nd - idk what You wanted to say....
3rd option is what I use, but I was not asking about that...
-
Option 1 is also what I do. I can't stand having to set static IPs in individual VMs (or any physical machine for that matter). Much easier to do it inside the router GUI where all the MACs are stored.
-
I think we done talking. Non static ip in active directory :lol:
-
@tony I don't understand option 2. I think it's the option I want to use, but I'm told how to NOT do it. I have commandline access on the XOA VM. Thanks.
-
The 2nd option is basically forcing the static IP through XCP-ng, if you have SSH access to your XOA VM then you can also use option 3 (hint: XOA is based on debian 10).
The steps for option 2 are:
- SSH into your XCP-ng host that XOA VM is running on.
- Use this command to find out your XOA VM's VIF UUID
xe vif-list vm-uuid=<UUID of your XOA VM>
- Use this command to set static IP for your XOA VM
xe vif-configure-ipv4 uuid=<UUID of your XOA VM VIF> mode=static address=<IP address/Subnet mask> gateway=<Gateway address>
-
@tony Perfect. That's exactly what I wanted. Thanks.
-
@tony Is that the same process which happens when I modify the network parameters within XOA's Network tab?
Thanks again. -
@kdm I'm not sure which settings are you referring to? If you mean the Allowed IPs then no, that setting is to be used in conjunction with VIF-locking mode.
-
@tony Yes, that's the setting I was talking about. OKay. I've no idea what VIF-locking is, so I'll leave it there! Thanks again.