9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] simple route question
@ 2007-05-30 16:41 ron minnich
  2007-05-30 17:35 ` erik quanstrom
  0 siblings, 1 reply; 5+ messages in thread
From: ron minnich @ 2007-05-30 16:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

My understanding of routes is that I ought to be able to do this:
node 1:
echo add 11.0.0.1 255.0.0.0 11.0.0.0 > /net/ipifc/1/ctl

node 2:
echo add 12.0.1.1 255.0.0.0 12.0.0.0 > /net/ipifc/1/ctl
echo add 11.0.1.1 255.0.0.0 11.0.0.0 >/etc/ipifc/1/ctl

notwithstanding that the network number is superfluous, anything wrong
with the above that I am missing?

(this looks weird, there is a reason for it)

A ping to an 11. net does not get to the interface, I am not sure I see why.

A ping to 12. does

thanks

ron


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

* Re: [9fans] simple route question
  2007-05-30 16:41 [9fans] simple route question ron minnich
@ 2007-05-30 17:35 ` erik quanstrom
  2007-05-30 19:14   ` ron minnich
  0 siblings, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2007-05-30 17:35 UTC (permalink / raw)
  To: 9fans

On Wed May 30 12:41:24 EDT 2007, rminnich@gmail.com wrote:
> My understanding of routes is that I ought to be able to do this:
> node 1:
> echo add 11.0.0.1 255.0.0.0 11.0.0.0 > /net/ipifc/1/ctl
> 
> node 2:
> echo add 12.0.1.1 255.0.0.0 12.0.0.0 > /net/ipifc/1/ctl
> echo add 11.0.1.1 255.0.0.0 11.0.0.0 >/etc/ipifc/1/ctl

[...]

> A ping to an 11. net does not get to the interface, I am not sure I see why.

could the problem be that you mean /net and not /etc?

- erik


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

* Re: [9fans] simple route question
  2007-05-30 17:35 ` erik quanstrom
@ 2007-05-30 19:14   ` ron minnich
  2007-05-30 23:41     ` Bakul Shah
  0 siblings, 1 reply; 5+ messages in thread
From: ron minnich @ 2007-05-30 19:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5/30/07, erik quanstrom <quanstro@coraid.com> wrote:

> > echo add 12.0.1.1 255.0.0.0 12.0.0.0 > /net/ipifc/1/ctl
> > echo add 11.0.1.1 255.0.0.0 11.0.0.0 >/etc/ipifc/1/ctl

> could the problem be that you mean /net and not /etc?

if only, I typed that wrong when I created the message.

iproute is this one node 2:

1/log:0.0.0.0         /96  10.0.0.1        4    none   -

1/log:10.0.0.0        /104 10.0.0.0        4i   ifc    -

1/log:10.0.0.0        /128 10.0.0.0        4b   ifc    -

1/log:10.0.0.1        /128 10.0.0.1        4u   ifc    -

1/log:10.255.255.255  /128 10.255.255.255  4b   ifc    -

1/log:11.0.0.0        /128 11.0.0.0        4ip  ifc    -

1/log:11.0.0.1        /128 11.0.0.1        4u   ifc    -

1/log:11.255.255.255  /128 11.255.255.255  4b   ifc    -

1/log:12.0.0.0        /104 12.0.0.0        4i   ifc    -

1/log:12.0.0.0        /128 12.0.0.0        4b   ifc    -

1/log:12.0.0.1        /128 12.0.0.1        4u   ifc    -

1/log:12.255.255.255  /128 12.255.255.255  4b   ifc    -

1/log:255.255.255.255 /128 255.255.255.255 4b   ifc    -


12 works fine. Pings to 11 don't make it to the medium code. I'm puzzled.

ron


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

* Re: [9fans] simple route question
  2007-05-30 19:14   ` ron minnich
@ 2007-05-30 23:41     ` Bakul Shah
  2007-05-31  0:22       ` ron minnich
  0 siblings, 1 reply; 5+ messages in thread
From: Bakul Shah @ 2007-05-30 23:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> > > echo add 12.0.1.1 255.0.0.0 12.0.0.0 > /net/ipifc/1/ctl
> > > echo add 11.0.1.1 255.0.0.0 11.0.0.0 >/etc/ipifc/1/ctl
...
> 12 works fine. Pings to 11 don't make it to the medium code. I'm puzzled.

How well does plan9 do multiple IP addresses on the same
interface?

Could it be that since you added 12.0.1.1/8 *first* by
default the source address will be 12.0.1.1?  When you ping
11.x.x.x (presumably node1's ip address), your system sends
an ARP request to map the ip address to a mac address.  Now
if the address where ARP response should be sent to is
12.0.1.1, node1 wouldn't know what to do.  Can you snoop to
see the arp request?  What happens if you add addresses in
the reverse order?  Then 12.x.x.x pings should fail.


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

* Re: [9fans] simple route question
  2007-05-30 23:41     ` Bakul Shah
@ 2007-05-31  0:22       ` ron minnich
  0 siblings, 0 replies; 5+ messages in thread
From: ron minnich @ 2007-05-31  0:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

No, it just turned out to be a typo on my part.

How is it I only see typos when I post to 9fans ...

OH. many eyes must play into heisenberg somehow?

ron


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

end of thread, other threads:[~2007-05-31  0:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-30 16:41 [9fans] simple route question ron minnich
2007-05-30 17:35 ` erik quanstrom
2007-05-30 19:14   ` ron minnich
2007-05-30 23:41     ` Bakul Shah
2007-05-31  0:22       ` ron minnich

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).