X xoox Verified User Joined Oct 24, 2008 Messages 52 Oct 24, 2008 #1 i need change the IP Adderss in My Server because of i need transfer the server for new ISP how to make this? how i change the IP Adderss in My Server? on OS Centos 5.2
i need change the IP Adderss in My Server because of i need transfer the server for new ISP how to make this? how i change the IP Adderss in My Server? on OS Centos 5.2
X xoox Verified User Joined Oct 24, 2008 Messages 52 Oct 25, 2008 #2 please Help Ok i changed it is in direct admin but in "IP Management" in Netmask is not my new Netmask my new Netmask is 255.255.255.128 and now in "IP Management" Netmask is 255.255.255.248 How i change it is? Last edited: Oct 25, 2008
please Help Ok i changed it is in direct admin but in "IP Management" in Netmask is not my new Netmask my new Netmask is 255.255.255.128 and now in "IP Management" Netmask is 255.255.255.248 How i change it is?
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 25,033 Location California Oct 26, 2008 #3 If it's your main IP you'll probably have to do it by editing the file at: /etc/sysconfig/network-scripts/ifcfg-eth0 and restarting your network (Warning: if you've made any errors you can lose access to your server): Code: # service network restart # /usr/local/directadmin/scripts/startips If it's not the main IP the best way would be to remove the IP# and reinstall it. If you can't do that because it's in use you'll probably have to edit the DirectAdmin files directly: Code: # cd /usr/local/directadmin/data/admin/ips Then edit the file for the IP# whose netmask you're changing. When done, you'll need to restart the network (same warning as above replies). Code: # service network restart # /usr/local/directadmin/scripts/startips Jeff
If it's your main IP you'll probably have to do it by editing the file at: /etc/sysconfig/network-scripts/ifcfg-eth0 and restarting your network (Warning: if you've made any errors you can lose access to your server): Code: # service network restart # /usr/local/directadmin/scripts/startips If it's not the main IP the best way would be to remove the IP# and reinstall it. If you can't do that because it's in use you'll probably have to edit the DirectAdmin files directly: Code: # cd /usr/local/directadmin/data/admin/ips Then edit the file for the IP# whose netmask you're changing. When done, you'll need to restart the network (same warning as above replies). Code: # service network restart # /usr/local/directadmin/scripts/startips Jeff