[Linux-cluster] 2 IP addrs on one NIC : for 2 applications

Stewart Walters stewart at epits.com.au
Tue Jan 13 22:39:15 UTC 2009


sunhux G wrote:
> Thanks.
>
> What should I do to ensure that each time after the server is rebooted,
> this 2nd IP address stays : is there a config file somewhere that I must
> update or a startup script that get executed each time server is rebooted
> that will execute the commands?
>
> TIA
>
> On Tue, Jan 13, 2009 at 8:18 PM, Василец Дмитрий 
> <d.vasilets at peterhost.ru <mailto:d.vasilets at peterhost.ru>> wrote:
>
>     ifconfig eth0 *MailScanner has detected a possible fraud attempt
>     from "192.168.1.1" claiming to be* 192.168.1.1/24
>     <http://192.168.1.1/24> up
>     ifconfig eth0:1 *MailScanner has detected a possible fraud attempt
>     from "192.168.10.1" claiming to be* 192.168.10.1/24
>     <http://192.168.10.1/24> up
>
>
>
>
> ------------------------------------------------------------------------
>
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
Copy /etc/sysconfig/network-scripts/ifcfg-eth0 to 
/etc/sysconfig/network-scripts/ifcfg-eth0:1 (i.e. run "cp 
/etc/sysconfig/network-scripts/ifcfg-eth0 
/etc/sysconfig/network-scripts/ifcfg-eth0\:1") and modify the contents 
of the new file to suit appropriately.

This is for Red Hat and Red Hat based systems (Centos, Fedora, Mandriva 
etc) - Debian based systems typically use /etc/network/interfaces instead.

Regards,

Stewart

-- 
Stewart Walters
Senior IT Consultant
LPIC-2, MCP, MCDST, MCSA &
Foundations Certificate - IT Service Management

E&P IT Solutions Pty Ltd
Office: Level 2, 157 Rokeby Road, Subiaco, W.A. 6008
E-mail: stewart at epits.com.au
Phone: 08 9388 8622   Fax: 08 6210 1780   Mobile: 0419 977 848

==  Red Hat Linux, Solaris, VMware, Oracle and Windows.  ==
== Solutions for high performance and high availability. == 




More information about the Linux-cluster mailing list