9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Cannot access hosts outside of LAN
@ 2004-03-11  7:48 Nils M Holm
  2004-03-11  8:16 ` Fco.J.Ballesteros
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Nils M Holm @ 2004-03-11  7:48 UTC (permalink / raw)
  To: 9fans


Hello, 9fans.

Back in the 90's, I played with 2nd Edition for some time, but
finally stuck with Unix (Coherent, to be exact).

A few months ago, I 'rediscovered' Plan 9, downloaded it and
meanwhile, a PC running Plan 9 has replaced my X-terminal.

I am quite happy with it but somehow, I must be missing
something, since I do not manage to get IP networking working
right.

What I have done is to set up /lib/ndb/local. A copy is attached
to the end of this message. I can ping and telnet all Unix hosts
on the LAN, but accessing hosts outside of the LAN fails:

term% telnet tcp!symmetry!80 # host on LAN
connected to tcp!symmetry!80 on /net/tcp/1

term% telnet tcp!134.155.50.51!80 # host on WAN
telnet: connection timed out

Our firewall blocks ICMP, so I am using telnet for testing.

Any hints would be really appreciated.

Thank you for your help,

Nils.

----- /lib/ndb/local follows -----

ipnet=local
	ip=10.0.0.0
	ipmask=255.255.255.0
	ipgw=10.0.0.10
	dns=134.155.50.51
	dns=194.25.2.129

sys=nine
	ip=10.0.0.90
	ether=00A0241D0BED
	dom=nine.local
	proto=il

sys=symmetry
	ip=10.0.0.10
	ether=0060086458AC
	dom=symmetry.local

etc...
-- 
Nils M Holm <nmh@t3x.org> -- http://www.t3x.org/nmh/


^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: [9fans] Cannot access hosts outside of LAN
@ 2004-03-11 10:29 Tiit Lankots
  2004-03-11 10:42 ` lucio
  0 siblings, 1 reply; 11+ messages in thread
From: Tiit Lankots @ 2004-03-11 10:29 UTC (permalink / raw)
  To: 9fans

> What is /net/ipifc/0/local about? I cannot find it in the manual.

I think lucio meant /net/ipselftab. See ip(3).


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] Cannot access hosts outside of LAN
@ 2004-03-11 14:37 David Presotto
  0 siblings, 0 replies; 11+ messages in thread
From: David Presotto @ 2004-03-11 14:37 UTC (permalink / raw)
  To: nmh, 9fans

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

I can't see what you might have done wrong.

That routing table looks fine to me.  The gateway is correct
though the '-' at the end means that the default entry has
never been chosen as a route.  It is normally the next hop
interface for route.  It gets filled in whenever the route
is chosen for a packet; it's a cache to avoid the interface
lookup every time.  Did  you cat this out before trying to
connect to something off of the 10 net?

If this table was after failing to connect to an off LAN system,
then it means that it couldn't find an interface when you
tried to connect.  That I really don't understand.  What's
the output of 'netstat -i'?

Something you can do.

1) open a window, set it scrolling

echo set ip > /net/log
cat /net/log

2) open another window, set it scrolling

snoopy

3) open yet another window

tcp!134.155.50.51!80

If that doesn't immediately tell you something, send me all
the output.

[-- Attachment #2: Type: message/rfc822, Size: 3463 bytes --]

From: Nils M Holm <nmh@t3x.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Cannot access hosts outside of LAN
Date: Thu, 11 Mar 2004 10:45:02 +0100
Message-ID: <2004031109450200-70412@Symmetry.UUCP>


On 2004-03-11, lucio@proxima.alt.za wrote:
> You need to check that /net/iproute conatins a reasonable routing
> table, amongst other possibilities.  Note that the subnet width is in
> bits for IPv6.
>
> No harm checking /net/ndb and /net/ipifc/0/local, either, for sanity.

The routing table looks alright. If I read it correctly, the first
entry should direct outbound packages to the IP gateway (10.0.0.10):

0.0.0.0         /96  10.0.0.10       4    none   -
10.0.0.0        /120 10.0.0.0        4i   ifc    0
10.0.0.0        /128 10.0.0.0        4b   ifc    -
10.0.0.90       /128 10.0.0.90       4u   ifc    0
10.0.0.255      /128 10.0.0.255      4b   ifc    -
10.255.255.255  /128 10.255.255.255  4b   ifc    -
255.255.255.255 /128 255.255.255.255 4b   ifc    -

/Net/ndb looks fine, too:

ip=10.0.0.90 ipmask=/120 ipgw=10.0.0.10
	sys=nine
	dom=nine.local

> I use the "sys" name in the "ipgw" field for the network, but I'm not
> sure if that matters.

If have tried it, but it does not make a difference.

What is /net/ipifc/0/local about? I cannot find it in the manual.

Nils.

-- 
Nils M Holm <nmh@t3x.org> -- http://www.t3x.org/nmh/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-03-11 16:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11  7:48 [9fans] Cannot access hosts outside of LAN Nils M Holm
2004-03-11  8:16 ` Fco.J.Ballesteros
2004-03-11  9:42   ` Nils M Holm
2004-03-11  8:19 ` lucio
2004-03-11  9:45   ` Nils M Holm
2004-03-11 10:29     ` lucio
2004-03-11 10:27 ` Geoff Collyer
2004-03-11 16:25   ` Nils M Holm
2004-03-11 10:29 Tiit Lankots
2004-03-11 10:42 ` lucio
2004-03-11 14:37 David Presotto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).