Routing Issue?

Garrett Cooper youshi10 at u.washington.edu
Sun Dec 3 06:20:48 PST 2006


Yousef Adnan Raffah wrote:
> Hello Everyone,
> 
> I have a FreeBSD 6.1-RELEASE box that has two network cards (Dual
> Homed?). Each card is on a different network, as following
> (from /etc/rc.conf):
> 
> ifconfig_fxp0="inet 192.168.20.36 netmask 255.255.255.0"
> ifconfig_rl0="inet 192.168.210.6 netmask 255.255.255.0"
> defaultrouter="192.168.210.1"
> route_servers="-net 192.168.2.0 192.168.20.1"
> static_routes="net1 net2"
> route_net1="-net 172.20.68.0 192.168.20.1 255.255.254.0"
> route_net2="-net 192.168.2.0 192.168.20.1"
> 
> The fxp0 is connected to the outside world while the rl0 is connected to
> the internal networks. I noticed whenever I ssh or try to telnet to port
> 25 on this box from 192.168.2.x for example, it delays the response by
> something like 10 seconds, I even have a tcpdump of that!
> 
> Can someone explain what is wrong with my setup? Should I have routed
> running? (I personally don't feel it is needed)
> 
> Thanks in advance for your help and guidance.
> 
> P.S. I got the above setup based on my understanding of the handbook, so
> forgive me if I didn't understand it correctly :)


	I believe the actual fault is that you don't understand how networks 
are done, based on the /etc/rc.conf entries you've listed above.
	I suggest that you pick up Computer Networks: A System Approach by 
Peterson and Davie to pick up a basic idea of how networking and routing 
works, and maybe consult <http://en.wikipedia.org/wiki/Classful_network> 
as a basis for planning out how things will be done, in particular with 
network addresses.
	Providing netstat -nr" output would be beneficial as well when 
troubleshooting issues with routing, as well as any firewall rules you 
have in place.
-Garrett


More information about the freebsd-questions mailing list