Netmask

greatbrit

New member
Joined
Jun 21, 2006
Messages
1
Location
Daventry, UK
I'm having some connection issues so double-checking IP configurations I noticed in DirectAdmin the netmask isn't right for the server IP but I can't see how to alter it, however from ssh running ifconfig -a so I guess the server os itself is configured correctly but is this "display" info in a configuration file somewhere?
 
The server IP is set up before DA is installed, by whomever installed the OS Distribution on the server. It's possibly wrong, but in a way that still allows the server to work.

How/where it's set up depends on the OS Distribution used. On RedHat/CentOS/Fedora it's probably in this file:

/etc/sysconfig/network-scripts/ifcfg-eth0.

If you change it be sure to restart the network; On RedHat/CentOS/Fedora:
Code:
# service network restart
The above will kill any IP#s added by DirectAdmin; to restart them:
Code:
# /usr/local/directadmin/scripts/startips
If you get any errors saying the IP# is already running, then that's okay as long as the netmask is correct in the server setup; see:
Code:
ls -al /etc/sysconfig/network-scripts/ifcfg-eth*
Note that the above is for standalone servers, not for VPS. If you run a VPS you should check with your provider.

Jeff
 
Back
Top