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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-07-2003, 08:00 PM
|
#1
|
LQ Newbie
Registered: Apr 2003
Location: Brisbane, Australia
Distribution: Mandrake
Posts: 2
Rep:
|
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?
|
|
|
04-07-2003, 08:51 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
04-07-2003, 10:15 PM
|
#3
|
LQ Newbie
Registered: Apr 2003
Location: Brisbane, Australia
Distribution: Mandrake
Posts: 2
Original Poster
Rep:
|
yep, that worked
Thanks heaps! I was starting to get frustrated there...
|
|
|
04-07-2003, 10:32 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
In what instances would one want to do this?
And where would 2 ip's come from via 1 cable?
Cool
|
|
|
04-07-2003, 11:49 PM
|
#5
|
Member
Registered: Feb 2003
Distribution: Debian
Posts: 797
Rep:
|
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).
|
|
|
All times are GMT -5. The time now is 07:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|