LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Multiple IP's on the 1 NIC (https://www.linuxquestions.org/questions/linux-hardware-18/multiple-ip%27s-on-the-1-nic-53925/)

dicka_j 04-07-2003 08:00 PM

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?

finegan 04-07-2003 08:51 PM

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

dicka_j 04-07-2003 10:15 PM

yep, that worked :D

Thanks heaps! I was starting to get frustrated there...

MasterC 04-07-2003 10:32 PM

In what instances would one want to do this?

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

Cool

cuckoopint 04-07-2003 11:49 PM

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:28 PM.