[Linux-users] 2 IP's on the same network card
Dirk Moolman
DirkM
Fri Aug 31 06:31:09 PDT 2007
-----Original Message-----
From: linux-users-bounces at pananix.com
[mailto:linux-users-bounces at pananix.com] On Behalf Of Bill Campbell
Sent: 28 August 2007 04:32 PM
To: linux-users at linux-sxs.org
Subject: Re: [Linux-users] 2 IP's on the same network card
On Tue, Aug 28, 2007, Dirk Moolman wrote:
>>
>>
>>>On Tue, Aug 28, 2007, Dirk Moolman wrote:
>>>>Just a question - how do I make a network setting, like the eth0:1
>>that
>>>>I created below, permanent ? .... so that it stays when I reboot the
>>>>server
>>
>>
>>>The SuSE way to do this is ``yast2 lan'', edit the interface, go
>>>to the Advanced tab, and create an alias.
>>
>>On one of my existing servers (installed by someone else before my
>>time), there are interfaces eth0, and also eth0:1 - the latter is
not
>>defined as an alias.
>If it's a SuSE system newer than 9.0 Pro any eth0:x interface has
>been created manually, not with yast2.
>
>The applicable scripts are under /etc/sysconfig/network with
>names related to the Mac address(es) of the NICs. Aliases appear
>in these files as lines like this for the alias guardian.
>
>IPADDR_guardian='192.136.111.16'
>NETMASK_guardian='255.255.255.0'
On my system, this is how the aliases get added. I added the alias in
yast, and then confirmed in /etc/sysconfig/network that the alias was
added to the ifcfg_<mac_address> file.
I can manually remove it there, and then it also gets removed in yast.
The aliases just don't show in the ifconfig output, which could cause
trouble for me in future. I find it better (for myself) to keep things
as simple as possible. If I can find a way to let it show in ifconfig,
then I've made my life easier for future troubleshooting.
*** Disclaimer ***
The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately.
The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company.
The Company is not liable to ensure that outgoing e-mails are virus-free.
The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee.
The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links.
The sender of this e-mail is subject to and bound by the terms and conditions of Company+IBk-s Electronic Communications Usage Policy.
More information about the Linux-users
mailing list