April 7th, 2002, 07:45 AM
Join Date: Apr 2001
Time spent in forums: < 1 sec
Reputation Power: 13
gateway to one ethernet card
I have a freeBSD machine with two ethernet cards, one for public network(rl1) through ADSL and one for private network(rl0).
A problem I have encoubtered is that I cannot setup the gateway to the public network. The actual problem is the ADSL has a different network as my public network.
It's something like this;
ADSL(xxx.yyy.251.29/30) <---> freeBSD(rl1:xxx.yyy.207.180/29)(rl0:192.168.xxx.xxx) <--> private 192.168.xxx.xxx
Both 251.28/30 and 207.176/29 networks are active on the same line as ADSL. This has been confirmed by another box who's IP addesses are xxx.yyy.251.30 and xxx.yyy.207.178 (multi homed). This box works because it has the same network as the ADSL.
The freeBSD machine however does not have the same network as ADSL. I think this is the problem and I think I need to set up the routing so the machine knows how to get the Internet through ADSL.
I have tried something like this
route add -net 0.0.0.0 -interface rl1
I can then ping xxx.yyy.251.29 (ie ADSL gateway) but still I am not able to ping outside the Internet.
Can anyone please suggest how to fix this problem.
Thanks in advance and regards,
% gdb core tzuchunc