Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2004 12:38:55 +0200
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Vasenin Alexander aka BlackSir <blacksir@number.ru>
Cc:        freebsd-net@freebsd.org
Subject:   Re: What does it mean: arp_rtrequest: bad gateway value
Message-ID:  <20040121103855.GK9372@FreeBSD.org.ua>
In-Reply-To: <NKEJKOHEKMBIMCCEHEPKIEJICBAA.blacksir@number.ru>
References:  <NKEJKOHEKMBIMCCEHEPKIEJICBAA.blacksir@number.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--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:<UP,GATEWAY,HOST,STATIC>
: locks:  inits:
: sockaddrs: <DST,IFP>
:  192.168.0.66
:    route to: 192.168.0.66
: destination: 192.168.0.66
:   interface: dc0
:       flags: <UP,HOST,DONE,LLINFO,WASCLONED>
:  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     =
expire
:        0         0         0         0         0         0      1500     =
 1067
:=20
: locks:  inits:
: sockaddrs: <DST,GATEWAY,IFP,IFA>
:  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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040121103855.GK9372>