looking for command to display default route ip address

Rick Miller vmiller at hostileadmin.com
Wed May 29 18:12:07 UTC 2013

On Wed, May 29, 2013 at 2:03 PM, Joe <fbsd8 at a1poweruser.com> 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


# netstat -r
Routing tables

Destination        Gateway            Flags    Refs      Use  Netif Expire
default         UGS         0      192    em0

Take care
Rick Miller

More information about the freebsd-questions mailing list