Re: looking for command to display default route ip address

2013-05-29 Thread markham breitbach
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

Re: looking for command to display default route ip address

2013-05-29 Thread Rick Miller
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

Re: looking for command to display default route ip address

2013-05-29 Thread Lowell Gilbert
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