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
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


More information about the freebsd-questions mailing list