routing confusion on home network

Kel Graham kel at orawia.com
Tue Mar 15 11:16:33 GMT 2005


Hello,

I have a routing issue with my home network, and would really appreciate
any thoughts on where my problem lies, as I'm quite confused.

My network layout is as follows:

Internet
  |
  V
Cable modem
  |
  V
Netgear router (192.168.0.1, DHCP server 192.168.0.2 -> 192.168.0.49)
  |
  V
Negear wireless bridge (192.168.0.1 shared from router)
  .
  .
FreeBSD R5.2 PC (an0: 192.168.0.26, fxp0: 192.168.5.3)
  ^
  |
ADSL 4-port modem/router (IP: 192.168.5.1, default route: 192.168.5.3)
  ^
  |
Gentoo Linux PC (eth0: 192.168.5.2, default route: 192.168.5.1)



When logged onto the FreeBSD PC, I can surf normally, ping any machine on
both networks (192.168.0.0/24 & 192.168.5.0/24).

The problem I have is that when I log on to the Linux PC, I can ping any
machine on both networks, except the router (192.168.0.1), and thus don't
have internet access. Other PCs on either network can ping this PC without
any issue.

The router has been set with a static route for 192.168.5.0/24 pointing to
192.168.0.26.
I *assume* this route must be working as it a PC with an IP of say
192.168.0.2 can't ping 192.168.5.2.

The FreeBSD machine's rc.conf has enable_gateway="YES". It is not running
NAT, nor does it have a firewall installed (it's the GENERIC kernel).

When running tcpdump on the FreeBSD box, then start a ping from the Linux
box, I can see packets going to the router, but no reply.


So basically, anything behind the FreeBSD box can't connect to the net, or
ping the router. Can anybody suggest where I'm going wrong? Do I need to
bridge or nat the two interfaces in the FreeBSD box?


Thanks for your time,
Kel.


-- 
+----------------------------------------------+
| kel graham | kel at orawia.com | www.orawia.com |
| jabber/msn/yahoo/icq: www.orawia.com/contact |
+----------------------------------------------+






More information about the Ukfreebsd mailing list