Subject: Re: (maybe silly) routing question
To: None <avombach@freesurf.ch>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: port-sparc
Date: 12/04/2002 09:09:12
On Wed, 2002-12-04 at 04:18, avombach@freesurf.ch wrote:
> I have a le0 and qe(1-4) interface in my SparcLX running NetBSD1.6.
> They are configured like
> ifconfig le0 10.0.0.1
> ifconfig qe0 192.168.0.1
when doing this, always specify a /24 netmask (255.255.255.0 or
FFFFFF00). i think there's some silly code in ifconfig or if_net that
automatically guesses the netmask for a inet_addr based on legacy
"classful" addressing.
" # ifconfig le0 inet 10.0.0.1 netmask 255.255.255.0 broadcast
10.0.0.0.255 up "
failing this use tcpdump(8)....
-lava
>=20
> I can ping adresses in the 10/8 network range, but pinging e.g.=20
> 192.168.0.2 will fail with "no route to host". This behaviour seems to=20
> be different from the i386 port ... what am I doing wrong?
>=20
> sparclx# route show
> Routing tables
>=20
> Internet:
> Destination Gateway Flags=20
> 10.0.0.0 link#1 U =20
> loopback 127.0.0.1 UGR =20
> localhost 127.0.0.1 UH =20
> 192.168.0.0 link#2 U =20
>=20
> ---
> Genug gewartet? sunrise ADSL: schneller im Internet.
> http://www.sunrise.ch/de/internet/int_ads.asp
> ---
> Assez attendu? Avec sunrise ADSL, surfez encore plus vite sur le net.
> http://www.sunrise.ch/fr/internet/int_ads.asp
> ---
> Stufo di aspettare? Con sunrise ADSL pi=F9 veloce che mai in Internet.
> http://www.sunrise.ch/it/internet/int_ads.asp
>=20