adding gateway for ipaddress

controlgeek

New member
Joined
Nov 8, 2005
Messages
2
Maybe I'm going silly, but when adding more ips, is there something I'm not seeing in directadmin for specifying a gateway address? Or do you have to edit the config files manually?
 
DirectAdmin presumes all your IP#s are on the same network. If they are, then they have the same gateway address.

If they don't, then you should add the IP#, and then, as root, edit the file at:

/usr/local/directadmin/data/admin/ips/aa.bb.cc.dd

where aa.bb.cc.dd refers to the IP# you've just added...

And add the gateway to the first line and save the file.

Then restart your network. First make certain your shell loggin is on your main system IP#; otherwise you'll lose your connectivity.

Then (on linux):

Code:
# service network restart
# /usr/local/directadmin/scripts/startips
(the "#" mark isn't to be typed; it's there to remind you to enter the commands as root).

There may be a several second delay after the network restart line.

Note that we do not accept responsibility if your system is improperly configured and/or if the network doesn't start or if you lose connectivity.

Jeff
 
Back
Top