LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-07-2003, 09:00 PM   #1
dicka_j
LQ Newbie
 
Registered: Apr 2003
Location: Brisbane, Australia
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
Multiple IP's on the 1 NIC


I am having a hell of a time trying to get my network card to use 2 different IP addresses under Mandrake 9.1

any ideas?
 
Old 04-07-2003, 09:51 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
If I remember right, you should be able to bring them up with:

ifconfig eth0:0 192.168.0.1 up

and

ifconfig eth0:1 12.12.12.12 up

for instance anyway. I think that's all you need to do for device splitting.

Cheers,

Finegan
 
Old 04-07-2003, 11:15 PM   #3
dicka_j
LQ Newbie
 
Registered: Apr 2003
Location: Brisbane, Australia
Distribution: Mandrake
Posts: 2

Original Poster
Rep: Reputation: 0
yep, that worked

Thanks heaps! I was starting to get frustrated there...
 
Old 04-07-2003, 11:32 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
In what instances would one want to do this?

And where would 2 ip's come from via 1 cable?

Cool
 
Old 04-08-2003, 12:49 AM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
you only have 1 MAC addy, but you can have more than 1 ip.

For example, an ISP may give you 2 (or more ips), but bound it to one nic card (using MAC). So, lets say you have 2 ips. you set one up as your apache, while the other as the rest of the network. Then using NAT, you configure all connections to one ip to be forwarded to your apache server, while all connections to the other ip to be forwarded to your internal network. Your isp does not complain because they are only assigning ips to one computer (as far as they can tell - 1 nic is being used).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 01:23 PM
assigning multiple ip's to nic ? pingu_penguin Linux - Networking 2 05-14-2005 10:00 PM
Multiple ip's for same NIC hvdwatt Linux - Newbie 5 08-03-2003 05:33 AM
Multiple Apache Sites, on Multiple IP's, on Same Box?? RickyJ Linux - General 1 06-19-2003 11:55 AM
Multiple Apache Sites, on Multiple IP's, on Same Box?? RickyJ Linux - Software 0 06-19-2003 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:09 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