PDA

View Full Version : netmask edit - where is the file?



newbies
01-29-2004, 10:13 PM
Hi,

Once you assign a netmask to an ip you can not edit it in DA unless you delete the ip and add the ip again. I added an IP with the default netmask, 255.255.255.0, but my server owner told me the correct netmask for VPS should be 255.255.255.255. So where is the file I can edit through shell access as root?

Thank you.

rhoekman
01-30-2004, 03:54 AM
This is on RedHat..

/etc/sysconfig/network-scripts/

then edit the file ifcfg-eth0 or ifcfg-eth1

On FreeBSD:

Edit the file in /etc/rc.conf

newbies
01-30-2004, 08:40 AM
Thanks rhoekman, I found the file ifcfg-eth0, but it only has one of my two IPs. the netmask for this ip is correct, ie, 255.255.255.255. There is no file named ifcfg-eth1. So where could be the file which has the netmask value for another IP?

DirectAdmin Support
01-30-2004, 10:04 AM
/usr/local/directadmin/data/admin/ips/1.2.3.4

John

newbies
01-30-2004, 05:37 PM
still could not find the file.



/usr/local/directadmin/data/admin/ips/1.2.3.4

there is no such directory as ips. there is only a file named ip.list under /usr/local/directadmin/data/admin/, this file lists only ips, not netmask.

ProWebUK
01-30-2004, 07:30 PM
DirectAdmin (admin) > IP Manager

Have you added the IP there?

Also run:

locate 1.1.1.1

(replacing 1.1.1.1 with an actual ip) - see if that turns up anything...

If you need you could just delete it from within the IP manager then create it again with the new netmask.... ;)

Chris

DirectAdmin Support
01-31-2004, 09:03 PM
Hello,

ips *should* be there, or else you've get a whole pile of errors in the IP Manager. If it isn't there, then just create it.

John

newbies
01-31-2004, 10:47 PM
Thanks for reply.


ips *should* be there, or else you've get a whole pile of errors in the IP Manager. If it isn't there, then just create it.

There are files or directories? If they are directories, just create those directories named after my IPs, right?.


Have you added the IP there?

Yes I have added my IPs, they show up in DA.

DirectAdmin Support
02-01-2004, 12:30 PM
Hello,

If they are showing up fine in the IP Manager, then the directory "ips" is there, with the ip files "1.2.3.4" in that directory.

John

newbies
02-01-2004, 12:38 PM
Now I got it. Thank you.