LinuxQuestions.org
Help answer threads with 0 replies.
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 04-24-2010, 11:33 AM   #1
solo0805
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Rep: Reputation: 0
multi ip in one ethernet card is possible?


can one ethernet card support multiple ip address?

i googling it.

they say it possible.

but i think it's very dangerous. if bad guy take many ip, other people can't get ip.

my question is "does one ethernet card take multiple real ip or multiple virtual ip(one real ip)?"

if it takes multiple real ip, then how it works good?..

please advise.
thanks.
 
Old 04-24-2010, 02:24 PM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Having the right terminology helps when googling. What you are looking for is commonly referred to as "ip alias". There is a somewhat dated, but basically still valid, howto here http://www.faqs.org/docs/Linux-mini/IP-Alias.html. In recent years various distributions of linux have come up with different ways of configuring this.
 
1 members found this post helpful.
Old 04-24-2010, 09:56 PM   #3
solo0805
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by choogendyk View Post
Having the right terminology helps when googling. What you are looking for is commonly referred to as "ip alias". There is a somewhat dated, but basically still valid, howto here http://www.faqs.org/docs/Linux-mini/IP-Alias.html. In recent years various distributions of linux have come up with different ways of configuring this.
thanks.

but my question is not how to use many ip.

i want to know "can one ethernet card take many real ip?".

i think "ip alias" and router's mechanism is similar.

then host can't see my ip's alias, host see my one real ip.
 
Old 04-24-2010, 10:49 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
What makes the difference between a real IP and an aliased IP? If you assign you ethernet card another IP, it acts as it has 2 network cards, each with its own IP. Traffic for one subnet is sent on one, traffic for the other subnet is sent on the other. The same happens with the adapter with multiple IP addresses, only the same physical plug is used.

jlinkels
 
1 members found this post helpful.
Old 04-24-2010, 10:50 PM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Not sure what your question is, then, or whether it might not just be a question of definition or semantics. When you set up "IP Aliasing", they are real IPs. For example, I have a server that has one interface that has a public address and multiple private addresses. We run NATing and have most of our desktops on private IPs. They can address the server on the private subnet. The server can also be accessed from the outside on its public address. Of course, this requires running a border router and a DNS server for everything to work.

There's also virtual hosting for Apache. That references the primary IP address, but the domain registration has to be set up to point to my primary IP. So, there end up being multiple domain names that resolve to the same IP address. However, if you look up the IP address, it will return my primary domain.
 
1 members found this post helpful.
Old 04-24-2010, 11:02 PM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by solo0805 View Post
thanks.

but my question is not how to use many ip.

i want to know "can one ethernet card take many real ip?".

i think "ip alias" and router's mechanism is similar.

then host can't see my ip's alias, host see my one real ip.
Which linux distribution are you on?
http://www.cyberciti.biz/faq/bind-al...ress-in-linux/
 
1 members found this post helpful.
Old 04-25-2010, 12:08 AM   #7
solo0805
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for asking.

i understand it.

but could it make bad problem if someone deliberately take many ips?
 
Old 04-25-2010, 09:54 AM   #8
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Not really. Numbers of IPs shouldn't be a problem. They would only cause problems for themselves or within the subnet are responsible for. If they don't own the IP range or control the DNS, they aren't going to get traffic to themselves for additional IPs.

On the other hand, within a specific subnet, a misbehaving individual can cause problems. They can take or assign a fixed IP that belongs to another device and cause routing problems. I once had someone maliciously change the IP on a public printer to the same IP as our primary server. Caused no end of trouble. I was on vacation and got called. After that, I mandated that the people setting up the printers lock them down. That was in the late 1990's.
 
  


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
MUlti Card and Multi Monitor ATI setup fails. Help tdiet62 Linux - Desktop 0 10-25-2008 04:36 AM
Multi IP Address to Single ethernet card scratch09 Linux - Networking 4 02-22-2005 10:22 PM
How do you change card# of multi multi-media cards. Nichole_knc Slackware 3 12-01-2004 12:49 PM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
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 11:24 PM.

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