netmask change without reason

ASTRAPI

Verified User
Joined
Feb 23, 2009
Messages
47
Hello

I was trying to add a free ip to use for nameservers in tha ip managment and i was have there:

Main ip 123.456.789.0 and net mask 255.255.255.0 and when i add a new ip i got this:

Main ip 123.456.789.0 and net mask 123.456.789.0 Mask
And the second ip that i just add with the corect net mask 255.255.255.0

Why the main net mask change and how can i fix it?

Thanks

At first i got a message that the ip adress was exist at eth0.
 
Last edited:
Fix the file in which DirectAdmin stores the information, and restart your network. Then run the startips script.

Jeff
 
If I'd remembered I would have posted it.

Okay, I just took the time to look it up so future users can Google it:

DirectAdmin keeps details for each IP# it manages in individual files in this directory:
Code:
/usr/local/directadmin/data/admin/ips
Note I've edited my post above to remind you to restart the IP#s after you restart the network.

The script to run to do that is at:
Code:
/usr/local/directadmin/scripts/startips
I can't tell you how to restart your network for all OS Distributions, but in Red Hat, Red Hat Enterprise and CentOS distributions:
Code:
 # service network restart
You do the above at your own risk; if it breaks between the start and the stop built into the restart, or if you've done something to screw up the network processes, you'll lose access to the server.

Jeff
 
I got permission denied when i try to go to data directory using wicsp ....

But i have only one account in this vps and i login using this...
 
You need to use the
Code:
su -
command to change to the root user. Read the output of
Code:
$ man su
to learn how to do this. If you don't have your root password try the password you've got.

If you've got a Debian-based installation, instead use:
Code:
$ sudo su -
and when asked for the password use your current password.

If none of this works for you, then your provider may be locking you down; you'd have to contact them.

Jeff
 
Back
Top