Add a new IP

MtK

Verified User
Joined
Aug 2, 2007
Messages
405
hey,
when I add a new IP to the system through the IP Management page, the IP appears in the ifconfig, but it does not added to the /etc/sysconfig/network-scripts/, so the IP addition actually does nothing to the system itself - therefor the IP do not even respond to a simple ping...

is that the way it should work?
should I manually add the IPs to the system?
 
when I add a new IP to the system through the IP Management page, the IP appears in the ifconfig,
Then it should work. If not then the data center has not routed it to your server yet.

but it does not added to the /etc/sysconfig/network-scripts/, so the IP addition actually does nothing to the system itself
That is correct. DirectAdmin manages the ip's and starts them with the /etc/rc.d/init.d/startips startup script. Its been discussed here many times.

- therefor the IP do not even respond to a simple ping...
Contact the data center. Many firewalls block pings.

should I manually add the IPs to the system?

No because DirectAdmin manages them.
 
I just tried that on a new server.
the IP was added through DA, and it was shown in ifconfig, but the IP does not respond to a simple ping unless I manually add it into the network-scripts...
 
I would suggest contacting DirectAdmin Support because something is definitely not right.
 
I would suggest contacting DirectAdmin Support because something is definitely not right.
I might, this is not a new issue, and it happened with several machines/installations...
 
I do not think you told us what operating system you were using. That might make a difference.

I have been using Fedora and CentOS for the last 5 years with DirectAdmin on hundreds of machines and VPS's and have never seen this.
 
I do not think you told us what operating system you were using. That might make a difference.

I have been using Fedora and CentOS for the last 5 years with DirectAdmin on hundreds of machines and VPS's and have never seen this.
all case were a CentOS system...
 
What if you only use the ifconfig command to add the ip?
My Server IP is: X.Y.123.Z
I חוst figured out to things:
  1. when adding an IP from the same gateway (i.e X.Y.123.Z'), I can add it though DA without a problem.
  2. when adding an IP from a different gateway (i.e X.Y.164.Z''), it doesn't work and I have to add it directly in the OS.
 
DA is not designed to handle multiple networks with different gateways. DA uses the default gateway. If you are doing complex routing then yes you have to manually do it.
 
DA is not designed to handle multiple networks with different gateways. DA uses the default gateway. If you are doing complex routing then yes you have to manually do it.
Thanks,
a final conclusion on this subject... :P
 
Thanks,
a final conclusion on this subject... :P
a little correction:
if you take a look at: /usr/local/directadmin/data/admin/ips/
you'll see the IPs set in side DA. looking inside each file you'll find the gateway configuration, which is plain empty.
if you manually set it to the correct gateway (the one that is not the default one), the re-adding the same IP results in a successful addition.


so maybe this should either become a BUG notification or a FEATURE REQUEST.
 
Back
Top