[Linux-users] 2 IP's on the same network card

Dirk Moolman DirkM
Mon Aug 27 14:49:08 PDT 2007


Ok, I found it - and it is actually so simple:

http://learnlinux.tsf.org.za/courses/build/net-admin/ch01s10.html

To plumb your device, you may run the command:

ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ifconfig eth0:1 172.16.5.1 netmask 255.255.255.0


"These commands would plumb the interface. Notice that the eth0:1 gives
the interface the second IP address. Using any number in place of the
'1' would also work."

 

-----Original Message-----
From: linux-users-bounces at pananix.com
[mailto:linux-users-bounces at pananix.com] On Behalf Of Dirk Moolman
Sent: 27 August 2007 11:37 PM
To: linux-users at linux-sxs.org
Subject: [Linux-users] 2 IP's on the same network card

I've been Googling, but I just can't seem to get the right command for
this.

I need to configure 2 ip adresses on the same network card.  On solaris
we used to create for example, eth0 and eth0:1  (by plumbing the
devices).

I read that it can be done on Linux, but I can't find the command or
syntax to do this.   My ifconfig does not seem to have a plumb option.

I am using Suse SLES9.   Is this possible ?


Dirk



*** 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's Electronic Communications Usage Policy.
_______________________________________________
Linux-users mailing list
Linux-users at linux-sxs.org
http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users


*** 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