LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2005, 03:48 AM   #1
scratch09
LQ Newbie
 
Registered: Nov 2004
Location: Nepal
Distribution: Mandrake 9.2, Ubuntu
Posts: 20

Rep: Reputation: 0
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)
 
Old 02-21-2005, 04:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 02-21-2005, 04:31 AM   #3
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Rep: Reputation: 15
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.
 
Old 02-21-2005, 10:43 AM   #4
scratch09
LQ Newbie
 
Registered: Nov 2004
Location: Nepal
Distribution: Mandrake 9.2, Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 02-22-2005, 10:22 PM   #5
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Single Ethernet card testing on Linux skukreja Linux - Networking 0 05-19-2004 04:02 PM
Bind Multi IP addresses to a single NIC sitg Linux - Networking 2 04-30-2004 08:59 PM
How to find ethernet card I/O address palanisaravanan Linux - Newbie 2 12-29-2003 12:53 PM
Setting Up 2 i.p address on one computer with one ethernet card gr8razorx Linux - Networking 3 11-29-2003 01:51 PM
MULTI ETHERNET CARD PROBLEM Alexandre Ghisolfi Linux - Networking 6 05-30-2001 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration