Re: arplookup 192.168.1.254 failed: host is not on local network

From: Lowell Gilbert (freebsd-questions-local_at_be-well.ilk.org)
Date: 03/01/05

  • Next message: Leonard Zettel: "restore"
    To: Mark Edwards <mark@antsclimbtree.com>
    Date: 01 Mar 2005 15:53:32 -0500
    
    

    Mark Edwards <mark@antsclimbtree.com> writes:

    > On Mar 1, 2005, at 11:21 AM, Lowell Gilbert wrote:
    >
    > > Mark Edwards <mark@antsclimbtree.com> writes:
    > >
    > >> I've just put my server on a new connection that requires DHCP, even
    > >> for a fixed IP. Anyway, the DHCP server gives a fixed public internet
    > >> IP to my server, but it communicates on 192.168.1.254, which angers
    > >> FreeBSD (4.11). I get a lot of the following:
    > >>
    > >> arplookup 192.168.1.254 failed: host is not on local network
    > >>
    > >> Which makes sense, because as far as FreeBSD is concerned, interface
    > >> ep1 is on the internet not on a LAN.
    > >
    > > Exactly.
    > >
    > >> Looking on the net, I found the following suggestion, which does cure
    > >> the errors:
    > >>
    > >> /sbin/route add -net 192.168.1.254 -netmask 255.255.255.0 -interface 1
    > >>
    > >> My question is, is that the proper way to deal with this?
    > >
    > > It's not bad. I would use -host instead of -net and -netmask, and it
    > > will fail if the DHCP server ever changes its address, but what you
    > > are doing is is working and fairly likely to stay that way.
    >
    > How would you phrase the command? I just tried -host and couldn't get
    > it to work.

    e.g.,
    route add -host 172.10.212.2 -interface bge0

    > >> I have to
    > >> issue this statement whenever the dhclient is restarted. I've
    > >> currently placed it in my firewall script, but is there a proper or
    > >> more elegant way to achieve this?
    > >
    > > If you want something more elegant, you could specify a script for one
    > > of the dhclient-script(8) hooks, and put the route in there. You
    > > would be able to refer to the interface and server address by
    > > variables which dhclient-script provides...
    >
    > Great! I put the command in /etc/dhclient-exit-hooks and it works
    > great on a reboot. I don't really see which variables I can use in
    > the dhclient-script man page though. Do you know which variables
    > would do this?

    $interface
    $new_ip_address
    I can't seem to find anywhere that the server address is passed along, though.

    -- 
    Lowell Gilbert, embedded/networking software engineer, Boston area
    		http://be-well.ilk.org/~lowell/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Leonard Zettel: "restore"

    Relevant Pages

    • Re: What doesnt lend itself to OO?
      ... The whole idea that a subsystem is just ... > The first line exists in the server. ... objects between client and server i.e. as far as the client code is ... > external interface is the traditional input interface whose ...
      (comp.object)
    • Re: nslookup with 169.x.x.x?
      ... machine re-registers with DNS server. ... interface that it generating it. ... >> enabled that is unable to reach a DHCP server to get an IP address. ...
      (microsoft.public.windows.server.dns)
    • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
      ... If you think I'm giving a verbose pseud write access to my server, ... interface appears in C Sharp as consisting of sbyte arrays. ... failed to see that a for loop is not just a while loop because a while ... chilling effect on freedom of speech. ...
      (comp.programming)
    • Re: Cannot get NAT to route in RRAS
      ... The basic problem is that you are using an ADSL modem on the server. ... I would suggest that you set up a demand-dial interface to act as the ... Static Route wizard, create a default route using this interface (ie put ...
      (microsoft.public.win2000.ras_routing)
    • Re: Cannot get NAT to route in RRAS
      ... ADSL Link was set as the Public interface in NAT, ... The static route also adds in fine using the ADSL Link interface, ... separate DNS server handles client’s requests, ... > Internet connection. ...
      (microsoft.public.win2000.ras_routing)