route -n get default
On 13-05-29 12:03 PM, Joe wrote:
> Hello list
>
> How do I find the ip address of the default route?
>
> thanks
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To un
On Wed, May 29, 2013 at 2:03 PM, Joe 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
Joe writes:
> Hello list
>
> How do I find the ip address of the default route?
The next-hop address, or the local address?
The former can be easily parsed out of the netstat(1) output,
the latter isn't necessarily unique.
___
freebsd-questions@freebs