New Datacenter asks to set the main IP's NetMask from /24 > /32

shanky

Verified User
Joined
Dec 7, 2007
Messages
89
How I can change the main/server IP's netmask from /24 to "/32" to match the datacenter advised?

Thanks
 
If I'm not mistaken they mean to change the subnet from 255.255.255.0 to 255.255.255.255 instead.

I don't know if this can be done via the GUI.

Login via SSH.
cd /usr/local/directadmin/data/admin/ips
edit the ip's there and change the subnetmask.

After that, restart the network from DA GUI or use:
service startips restart
 
Code:
nmcli con mod eth0 ipv4.addresses 1.2.3.4/32
nmcli networking off && nmcli networking on

where "eth0" is your network interface name (found by cmd "nmcli con show").
where "ipv4" ( or "ipv6") is your type connection and then it your server "IPAddress/netmasks".
 
If I'm not mistaken they mean to change the subnet from 255.255.255.0 to 255.255.255.255 instead.

I don't know if this can be done via the GUI.

Login via SSH.
cd /usr/local/directadmin/data/admin/ips
edit the ip's there and change the subnetmask.

After that, restart the network from DA GUI or use:
service startips restart
Yes! It requires 255.255.255.255

It works with Richard G suggested commands.
-----

Code:
nmcli con mod enp1s0f0 ipv4.addresses 1.2.3.4/32
Error: unknown connection 'enp1s0f0'.
Device name : enp1s0f0

It always gives the device name error, so I have finished it with Directadmin command.

Thanks
 
Back
Top