On Wed, Jan 21, 2004 at 10:51:18AM +0300, Vasenin Alexander aka BlackSir wrote: > Those messages sometimes appears in log. Maybe someone know where to find > what it actually mean? > > 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 > 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 : : 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, -- Ruslan Ermilov FreeBSD committer [EMAIL PROTECTED]
pgp00000.pgp
Description: PGP signature
