Subject: Routing with MacIP
To: None <port-mac68k@NetBSD.ORG>
From: Eric C Wagner <wagnerer@umich.edu>
List: port-mac68k
Date: 03/04/1998 02:27:51
Okay,
I've got the tunnels and interfaces working with the macipgw
program, but I'm having problems getting routing to work. Here's what I
got:
Given a net, say 10.0.0.0 for macip a tunnel device is set up as
10.0.0.1:
tun0: flags=43<UP,BROADCAST,RUNNING> mtu 586
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
For routing two entries are added so netstat -rn gives:
Destination Gateway Flags Refs Use Mtu Interface
10 10.0.0.1 UGS 0 0 - tun0
10.0.0.1 127.0.0.1 UGS 1 0 - lo0
and netstat -I tun0 gives:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
tun0 1500 <Link> 16 0 11 0 0
tun0 1500 11/24 10.0.0.1 16 0 11 0 0
The problem is that while MacIP devices can send packets through the
tunnel nothing gets sent in the other direction. I can fix this by typing
in:
route add -net 10.0.0.0 10.0.0.1
Everything works fine then.
netstat -I tun0 doesn't change and netstat -r gives:
Destination Gateway Flags Refs Use Mtu Interface
10 10.0.0.1 UGS 0 0 - tun0 =>
10 10.0.0.1 UGS 0 2 - tun0
10.0.0.1 127.0.0.1 UGS 2 0 - lo0
So can anyone explain what the little arrow under the interface means?
Whatever it is makes the thing work although I haven't tested the address
timeouts and behavior under load.
Thanks,
Eric
/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*/*\*
Eric Wagner Phone : 734-647-5525
1962 Cooley Building Fax : 734-763-4540
University of Michigan E-Mail: wagnerer@umich.edu
Ann Arbor, MI 48109 WWW : http://www.umich.edu/~wagnerer
Quote of the day: Do not take life too seriously; you will never get out if it alive.