default route

Eygene Ryabinkin rea-fbsd at
Fri Dec 14 02:12:30 PST 2007

Good day.

Fri, Dec 14, 2007 at 10:11:24AM +0100, vermaden wrote:
> network is put on rl0 and
> is on rl1, default router is set to on /etc/rc.conf as
> defaultrouter="", the problem:
> When I ping some box from network, it responds, when some box from
> network ping my box, my box responds, when I ping someone from
> network, he responds, when someone from network
> pings me my box does not response, propably packets are coming IN by rl1
> and going out by defaultgateway so thru rl0,

1. You can inspect where the system will send the packet for the
   host in 192.168/16 by doing 'route get 192.168.X.Y'.  In normal
   (or simple) conditions this should give you rl1, since 192.168
   sits on that interface (provided that you didn't played with
   routing table manually).

2. When someone from 192.168 pings you, you can spawn two tcpdump
   instances: 'tcpdump -lvvni rl0 icmp' and 'tcpdump -lvvni rl1 icmp'
   and watch for the ICMP packets and interfaces on which they are
   coming in/going out.

3. Check your firewall: may be it is blocking ICMP replies to the
   192.168/16.  Or may be some external firewall blocks ping
   attempts from 192.168/16.  Tcpdump should show you the overall

More information about the freebsd-net mailing list