LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Multi IP Address to Single ethernet card (https://www.linuxquestions.org/questions/linux-networking-3/multi-ip-address-to-single-ethernet-card-292881/)

scratch09 02-21-2005 03:48 AM

Multi IP Address to Single ethernet card
 
I've heard multi IP addresses can be provided to single ethernet card in linux box. But how I don't know. Please help buddies.

Trying to configure multi web spaces in single machine. You people may also help by giving information about giving virtual names with single IP address too. But do not forget to help in above topic tooo.

*(New to Linux)

bathory 02-21-2005 04:20 AM

This an be done by:
Code:

ifconfig eth0:0 xx.xx.xx.xx netmask yy.yy.yy.yy up
where eth0 is your primary interface and eth0:0 is a virtual one

krishvij 02-21-2005 04:31 AM

if you are new to Liux, then try the following command on the terminal :-

redhat-config-network

you would get a window wherein you can click on "new". in the window that appears, provide the required IP address. It will automatically take care of the other settings it wouldneed to do.

scratch09 02-21-2005 10:43 AM

More help!

Thank you ifconfig code worked.
thank you both of you.

PS: in Apache while trying to configure VirtualNames with * as IP address it didnot work. Please help

krishvij 02-22-2005 10:22 PM

try putting each of ur web site names with specific IP addresses. It should work. Do this in the DNS script file. I think it is /etc/named.conf or /etc/name.conf

Just check that out


All times are GMT -5. The time now is 01:13 AM.