Subject: Re: Using route -interface modifier
To: Jeremy C. Reed <reed@reedmedia.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 09/12/2001 09:17:49
On Tue, Sep 11, 2001 at 09:35:41PM -0700, Jeremy C. Reed wrote:
> I am trying to connect to a SunOS 5.5.1 system that doesn't have a monitor
> or keyboard and the serial console shows the boot messages, but no login
> prompt.
>
> >From these boot messages, I was able to see ethernet hardware address and
> a gateway address.
>
> I used "tcpdump" to see traffic on my local network to find its IP; some
> examples:
>
> 21:13:18.750926 137.134.52.26.33641 > 137.134.255.255.sunrpc: udp 96
> (DF) [ttl 1]
> 21:13:19.421984 arp who-has 137.134.52.1 (Broadcast) tell 137.134.52.26
>
> I want to tell my workstation which has a hub in between it and the Sun
> box to be on the same network. Currently, my NetBSD workstation is on a
> 192.168/16 network.
>
> Of course, if I simply use traceroute (or any other network connection) to
> that IP, it goes via my gateway (to my router) and then out to the
> internet.
>
> The route(8) manual page says:
>
> If the destination is directly reachable via an interface requiring no
> intermediary system to act as a gateway, the -interface modifier should
> be specified; the gateway given is the address of this host on the common
> network, indicating the interface to be used for transmission
>
> So I used:
>
> route add -net -interface 137.134.52 137.134.52.26
What I would do here is something like:
ifconfig ne0 137.134.1.1 netmask 0xffff0000 alias
I've done this before and I know it works :)
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--