[Gllug] automatically starting eth0:1 after network connection lost

ccooke-gllug ccooke at gkhs.net
Tue Nov 20 16:25:23 UTC 2007


On Tue, Nov 20, 2007 at 04:18:36PM +0000, Aaron Trevena wrote:
> Hi GLLUG,
> 
> One of my clients has a development server in their office that I and
> other contractors use remotely, unfortunately their network is a bit
> on the unreliable side, and the external facing (via some router
> jiggery pokery) ip address on eth0:1 doesn't come back up after the
> router brings the link down and back up.
> 
> So.. anyway - my feeble google skills are failing me here and I was
> wondering what the simplest way is to ensure that eth0:1 comes back
> when eth0 does? (it's a Centos 5 box)
> 

You'll find the interface definitions in
/etc/sysconfig/network-scripts/. All you need to do is create one called
"ifcfg-eth0:1", of the form:

DEVICE=eth0:1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=you.ip.address
NETMASK=you.net.mask

(there are other parameters; read the docs (or existing ifcfg-* files)
for details).

-- 
for((P=10**8,Q=P/100,X=320*Q/(`tput cols`-1),Y=210*Q/`tput lines`,y=-105*Q,v=-2\
20*Q,x=v;y<105*Q;x=v,y+=Y));do for((;x<P;a=b=i=k=c=0,x+=X));do for((;a*a+b*b<2*\
P*P&&i++<99;a=((c=a)*a-b*b)/P+x,b=2*c*b/P+y));do :;done;(((j=(i<99?i%16:0)+30)>\
37?k=1,j-=8:0));echo -ne "\E[$k;$j"mE;done;echo -e \\E[0m;done # Charles Cooke
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list