ip changing.

IF i have a dedicated server, lets just say it only has one ip.

208.38.15.4
OK?

So..... lets pretend i want more ips, my host does it, but they say i will have to be on a new subnet, meaning, ill have to change eth0, the subnetmask and gateway..

SO...

the current config for /etc/sysconfig/network is

server:/www/conf# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME="mydomain.com"
GATEWAY="208.38.15.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="no"
NISDOMAIN=""
IPX="no"
IPXINTERNALNETNUM="0"
IPXINTERNALNODENUM="0"
IPXAUTOPRIMARY="on"
IPXAUTOFRAME="on"


and the current config for /etc/sysconfig/network-scripts/ifcfg-eth0 is:

DEVICE="eth0"
IPADDR="208.38.15.4"
NETMASK="255.255.255.0"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

SO.....

What i want to know is, could i just modify those two values, for gateway netmask, and ipaddr
save it

then /etc/rc.d/init.d/network restart ?
would that work? or would i have to reboot?

and if it does, dont bother explaining adding the "new ips" i am receiving, i know how and everything, I just to loose my great 106 day uptime

What i'm thinking is do that, change the ips, then at now + 5 min
/sbin/reboot
ctrl+D
then hope it works
if it works then ill remove the reboot job

if it doesnt
ill wait for it to reboot =\


any ideas?

 

 

 

 

Top