Click to See Complete Forum and Search --> : What can I do with 4 IP's ?
tachyonism
03-21-2001, 09:52 PM
I've a dsl connection and got 4 IP's from the provider. I'm running RH 7, with 2 NIC's, eth0 local, and eth1 for the dsl.
Can I bind the 3 other IP's on one NIC ?
Anyone has any idea what I can do with the IP numbers ? like NS server probably is it possible ?
TIA
[ 21 March 2001: Message edited by: tachyonism ]
Strike
03-21-2001, 10:12 PM
I don't think you can have multiple IPs per device. But you can get a hub/router and put up 4 boxes. If it's costing extra, I'd just go for 1 IP and then split it between your 'puters (what most do).
rppp01
03-21-2001, 11:23 PM
You can have multiple IPs per nic. It is called using Virtual IPs. They are real, and you can bind them to each nic.
For example: ifconfig eth0:1 x.x.x.x netmask x.x.x.x up will bring up the eth0:1 Virtual IP. Now, I don't remember how to make it stick in Linux, as I do this on Solaris at work :)
Just keep adding to that nic eth0:2 and so on, or bind to the other nic- eth1:1 and so on. Have fun!
tachyonism
03-22-2001, 09:12 AM
Thanks guys,
I'm considering of buying a hub, and split the IP's.
Stubbs
03-22-2001, 10:46 AM
Are you sure you can use all 4 IP's?
I also have 4 IP's on my DSL account, but only 1 of them is actually for use by me.
Here's how mine works...
I have 4 IP's, 10.0.0.100 to 10.0.0.103 (for example, these aren't my real IP's :) ) with a netmask of 255.255.255.224
With that in mind, the 1st and last addresses (100 & 103) are used as the broadcast & network addresses so are unusable, and the 2nd (101) is the address of my router, therefore I only have the 1 left (102).
What I do is have a firewall/gateway machine, whose external if has the final public ip address (102) and I have an internal network of machines with private addresses.
I use IP forwarding to redirect incoming traffic to the internal servers and Ip masquerading (sp?) for all outgoing traffic.
Works a treat.
I'd check with your ISP that you can actually use all of those 4 IP's.
[ 22 March 2001: Message edited by: Stubbs ]
tachyonism
03-22-2001, 11:11 AM
Humm, you made me thinking.
They told me the purpose of 4 IP's is to connect my others pc's to the internet.
So, I think the IP's will work. But I've never tried to use the other ip's.
I'll try it, and see what happens.
freebsd
03-22-2001, 12:16 PM
>> They told me the purpose of 4 IP's is to connect my others pc's to the internet
You should have gotten a router from them. Well, if you don't have that many boxes, go buy some P2s, they are damn cheap these days.
>> Can I bind the 3 other IP's on one NIC ?
Sure you can. But without a purpose for doing so, just don't do it, especially if you don't have a good network card.
Originally posted by tachyonism:
Anyone has any idea what I can do with the IP numbers ?
Have any close friends that live near you? Rent out the IPs if you plan on staying with your provider for a long time. :D
Super Bakemono
03-26-2001, 12:26 AM
You don't need a router to use more than 1 real IP, just a hub. :cool: