Hi Marco,
> i have one router, and 8 static ip from my isp
>
> i want to assign to a linux machine behind the router, all avaiable public
> ip (knowing that one is for the net, one for the broadcast, one for the
> remote router and one for the wan interface on my router).
>
> The router is a Telindus 9100, but i need help on the logic of the
> configuration, not the real setup of the router.
>
> One of my friends told me that i have to assign another public ip to the LAN
> interface of the router.
> Then i can assign the remaining ip (3) to the linux machine.
>
> My problem is that the router does not seems to forward packet from the wan
> ip to the lan ip.
> I tried adding on free ip to one machine, setting the gateway to the lan ip
> of the router, and it seems that pinging the router lan ip works, but
> pinging an outside ip gives me network unreachable.
Ok, basically it's a question what a router does and what he doesn't.
The main purpose is to connect 2 (or more) networks.
In the usual config, one net is the whole rest of the world (internet)
and one net is your private net. Many routers therefor have one WAN port
and several LAN ports (providing switch functionality).
The default setup would be:
if some IP packet comes from the LAN side,
check, if the dest IP is in the LAN net.
If so, keep the packet on the LAN side.
If the ip is not on the LAN net, route the packet to the WAN net.
And the whole thing vice versa (i'm assuming no NAT or masquerading at this
point).
Ok, in your setting, the WAN and LAN net are in the same subnet/network address
range. So this surely confuses the router. You can ping the LAN interface from
your machine, that's clear. But when you want to talk to someone on your LAN,
the routing table says "This subnet is on LAN side" and it says "this subnet is
on WAN side", too. So what should it do?
The same goes for destinations outside...the router only knows about ONE net.
A solution would be, as suggested by another poster, that you would
use private IPs for your LAN and use the router for NAT'ing or masq'ing
your LAN traffic to the world.
But you have serveral static IPs and you want to talk to your LAN PCs directly.
That means it'll be useful, if you expose the boxes directly to the internet
using your static IPs.
Ok, in this case the router acts as some kind of special switch, connecting your
LAN boxes to the subnet of your ISP.
I'm not really an expert, so i may be wrong. But i think your routing table
should look something like:
- traffic for X.X.X.X/0 goes to WAN port
- traffic for X.X.X.184/24 goes to WAN port (i'm not sure about the netmask)
- traffic for X.X.X.188/32 goes to LAN side (the port, where box 1 is connected)
- traffic for X.X.X.189/32 goes to LAN side (the port, where box 2 is connected)
- traffic for X.X.X.190/32 goes to LAN side (the port, where box 3 is connected)
This should route any traffic outside your 3 local boxes to the your ISP's
router......and the 3 specific IPs that can be found will be reached on the LAN
side. But i'm not sure about if this will provide proper broadcast behaviour.
Your 9 IPs do not allow to form a real subnet (like X.X.X.160/26), so this is
all a bit more difficult.
Maybe anybody else can confirm if that is correct or how this situation
can be handled....
HTH
Ralf
|