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

Re: Routing question



On Tue, Dec 05, 2000 at 11:58:48AM -0300, Eduardo Gargiulo wrote:
:Hi.
:
:I've tried your configuration and now I can ping the second interface (eth1) from the router, but not the other hosts. I run the following commands
:
:ifconfig eth1 200.16.224.3 netmask 255.255.255.255 up
:route add -host 200.16.224.3 eth1
:route add -host 200.16.224.4 eth1
:route add -host 200.16.224.5 eth1
:
:eth0 have 200.16.224.2 and the router 200.16.224.1
:The netmask is 255.255.255.248

First I'm not sure, my suggestion will work so don't bang your head on
it for too long.

Some things to check though:

can you ping all machines from the box you're configuring

did you echo 1 > /proc/sys/net/ipv4/ip_forward

did you set the default gateway properly


Another thing to try is a netmask calculator to make sure
255.255.255.248 is what you want.  In fact if you're going that far
figure out the masking you need on each interface so you don't have to
bother with static routing.

http://www.csc.fi/english/funet/calc/laskin2.html

don't forget when playing with strange subnetting that the network
address and broadcast will change too (this calculator shows all the
info)

-Jon



Reply to: