[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Internal routing



> Kevin Cheng wrote:
> 
> Hi,
> 
> I have a problem regrading the debian linux (kernel 2.3) internal
> routing. I have 2 NICs installed on my machine, one to the local LAN
> and the other one to the internet. I should have all the things setup
> correctly, like ipconfig and route...
> I can ping the outside world and the local LAN computers from
> my machine while I can also ping the 2 NICs' IP in my machine from the
> local LAN's  computers. The strange thing is that I CANNOT ping the
> outside world from the local network. I have already ensure the
> ipforwarding is on. (set to 1)
> 
> I have no clue on this.
> Could anyone help me out on this? Thanx a lot.

It sounds like you need to setup your internal machines to use you
router machine (the one with 2 NICs) as their gateway.

If your internal machines are Linux, you can type:
# route add default gw router_machine_name
This only works if there's already a route in the route table to
router_machine_name (sounds like there is from your description).

If they're Windows, you can put the gateway IP in the network setup
somewhere.

Matthew



Reply to: