From owner-freebsd-net@FreeBSD.ORG Wed Jan 21 02:38:28 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAAD416A4CE for ; Wed, 21 Jan 2004 02:38:28 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id D047243D2D for ; Wed, 21 Jan 2004 02:38:22 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i0LAd5em010971; Wed, 21 Jan 2004 12:39:06 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i0LAd0AU010966; Wed, 21 Jan 2004 12:39:00 +0200 (EET) (envelope-from ru) Date: Wed, 21 Jan 2004 12:38:55 +0200 From: Ruslan Ermilov To: Vasenin Alexander aka BlackSir Message-ID: <20040121103855.GK9372@FreeBSD.org.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QDIl5R72YNOeCxaP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i cc: freebsd-net@freebsd.org Subject: Re: What does it mean: arp_rtrequest: bad gateway value X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 10:38:29 -0000 --QDIl5R72YNOeCxaP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 21, 2004 at 10:51:18AM +0300, Vasenin Alexander aka BlackSir wr= ote: > Those messages sometimes appears in log. Maybe someone know where to find > what it actually mean? >=20 > Jan 21 02:58:54 inet /kernel: arp_rtrequest: bad gateway value > Jan 21 03:03:54 inet /kernel: arp_rtrequest: bad gateway value > Jan 21 03:08:53 inet /kernel: arp_rtrequest: bad gateway value > Jan 21 03:13:52 inet /kernel: arp_rtrequest: bad gateway value > Jan 21 03:23:51 inet last message repeated 2 times > Jan 21 03:33:48 inet last message repeated 2 times >=20 The ARP entries are stored in the routing table. A valid ARP entry has a link-type gateway address. If your routing table is misconfigured, it's possible that gateway will be something else -- then the kernel whines. An example. Here's a valid ARP entry, that can also be viewed in less verbose form by arp(8): : # route -vn get -host 192.168.0.66 : u: inet 192.168.0.66; u: link ; RTM_GET: Report Metrics: len 164, pid: 0,= seq 1, errno 0, flags: : locks: inits: : sockaddrs: : 192.168.0.66 : route to: 192.168.0.66 : destination: 192.168.0.66 : interface: dc0 : flags: : recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu = expire : 0 0 0 0 0 0 1500 = 1067 :=20 : locks: inits: : sockaddrs: : 192.168.0.66 0.2.2d.1a.6d.df dc0:0.10.a4.c0.c0.45 192.168.0.90 The gateway is 0.2.2d.1a.6d.df, of type AF_LINK. Now I attempt to change it to something else: : # route change -host 192.168.0.66 1.2.3.4 : change host 192.168.0.66: gateway 1.2.3.4 Results in the following from the kernel: : arp_rtrequest: bad gateway 192.168.0.66 (!AF_LINK) This is on 5.2-CURRENT, the message is slightly more informative here. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --QDIl5R72YNOeCxaP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFADla/Ukv4P6juNwoRAu0yAJ9P3uA+HqccPhGUAGgWuMJ4U4j05ACfZd/r j0p0YURPNkRJG2xTrlyAGhk= =/Dns -----END PGP SIGNATURE----- --QDIl5R72YNOeCxaP--