On Wed, May 29, 2013 at 2:03 PM, Joe <[email protected]> wrote:
> Hello list
>
> How do I find the ip address of the default route?

The following examples return the next hop, usually a router.

# grep defaultrouter /etc/rc.conf
defaultrouter="192.168.0.1"

or

# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.0.1       UGS         0      192    em0
...

-- 
Take care
Rick Miller
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to