Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use multiple IP addresses?

Status
Not open for further replies.

jkilthau

Programmer
Jul 2, 2001
9
US
I have a Linux server co-located and I've been given a block of 16 IP addresses
to use. I understand that I can use several of them on the same connection.
Can I have them all go through the same ethernet card (eth0) ? If so,
how can I configure that?

Thanks much,
Jim
 
hi...
the same ethernet card can be used to hold more than 1 IP address in which case they will be known as logical IP addresses.
example..my machine say KORN has an IP 204.1.33.215 and say is visible on the net and my machine is also locally connected with IP say 194.2.3.112.In this case my single card serves to have 1 physical IP and 1 or more logical IPs

the first IP will be assigned to eth0 (thatz how linux calls its first ethernet card)

logical ips will have something like eth0:0 eth0:1 eth0:2 and so on


to add a logical IP address login as root and execute this command

ifconfig eth0:0 194.2.3.112 netmask 255.255.0.0
ifconfig eth0:1 194.2.3.116 netmask 255.255.0.0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top