View Full Version : adding gateway for ipaddress
controlgeek
11-08-2005, 10:50 AM
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?
jlasman
11-08-2005, 04:52 PM
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):
# 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
controlgeek
11-08-2005, 05:05 PM
Thanks for that.. It was the solution I went with in the end anyway.. :)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.