From owner-freebsd-questions@FreeBSD.ORG Wed May 29 18:12:07 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C1D7C9AB for ; Wed, 29 May 2013 18:12:07 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 9960AE22 for ; Wed, 29 May 2013 18:12:07 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id a14so25788542iee.13 for ; Wed, 29 May 2013 11:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=nm2wx8DXTbaHNGt1+B9UpwEqpXu7/o+7SlIVL6+xrD0=; b=p7B4uO3l/0byhU3RQ7/tMmbrlHjdVuQU0WY2gKFK7pt+wPAzJoxzXS982XHjG5vbDQ GwuVDAmBuqsN1G5RpDsQ1tcVSbnmF85e0bqno5shHEb66fIaaMOXXItkTD2yuArrD2C0 DUGliE+A6XfvVcMxUX0svejOC4b1H/oLsE/HZyAZh/8vgynuEEVg3XiOcqgxBfQIBwmK nN86bBLbt3y3B7u8Axwmz1LBrJZJw+g7Q9OfaGwKSABwQa4gpn/08+gNa5aZ5Rluq0Fe T8oJmwxJx/UyYzVdPR7cUxGr9Iy3Pkew9uSr6YRgfEvG6CrBbvElXZhoymKQy2Tj0QRr sO8g== MIME-Version: 1.0 X-Received: by 10.50.98.104 with SMTP id eh8mr9277320igb.111.1369851127370; Wed, 29 May 2013 11:12:07 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.64.18.78 with HTTP; Wed, 29 May 2013 11:12:07 -0700 (PDT) In-Reply-To: <51A642E5.2050506@a1poweruser.com> References: <51A642E5.2050506@a1poweruser.com> Date: Wed, 29 May 2013 14:12:07 -0400 X-Google-Sender-Auth: 4ftVRlqKRexj_DdMhmYuvhJNPpg Message-ID: Subject: Re: looking for command to display default route ip address From: Rick Miller To: Joe Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 18:12:07 -0000 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 Gateway Flags Refs Use Netif Expire default 192.168.0.1 UGS 0 192 em0 ... -- Take care Rick Miller