[comp.protocols.tcp-ip.ibmpc] Seeking help with ka9q as a router between 2 subnets

opschk@GANGES.UCOP.EDU (05/30/91)

I have setup 2  286's in the following configuration:

dopey has 2 ethernet cards: 1 connected to the 141 subnet, with an ip adress of
128.48.141.8, the other to the 144 subnet with an ip adress of 128.48.144.1
this is its autoexec file:

hostname dopey.ucop.edu
attach packet 0x66 nt2 3 1500 # this is on the 144 subnet
attach packet 0x65 nt1 10 1500 # this is on the 141 subnet

ifconfig nt1 netmask 0xffffff00 ip 128.48.141.8 broadcast 128.48.141.255
ifconfig nt2 netmask 0xffffff00 ip 128.48.144.1 broadcast 128.48.144.255

route add 128.48.141.0/24 nt1
route add 128.48.144.0/24 nt2
#
# incorporate the local nameserver for lookups
#
domain addserver [128.48.141.1]  #nile
#
# for broadcasts to work!
#
arp add 128.48.141.255 ether ff:ff:ff:ff:ff:ff
arp add 128.48.144.255 ether ff:ff:ff:ff:ff:ff
# some standard parameters

ip ttl 16
tcp mss 216
tcp window 1500
#
# start up the servers
#
start telnet
start smtp
start ftp
start echo
start discard
start rip
#
#
domain cache size 150
domain suffix ucop.edu
route add default nt1 128.48.141.100


tintin has 1 ethernet card connected to the 144 subnet with an ip adress of
128.48.144.2, its autoexec file is:

hostname tintin.ucop.edu
attach packet 0x65 nt1 10 1500 # this is on the 144 subnet

ifconfig nt1 netmask 0xffffff00 ip 128.48.144.2 broadcast 128.48.144.255

route add 128.48.144.0/24 nt1
#
# incorporate the local nameserver for lookups
#
domain addserver [128.48.141.1]  #nile
#
# for broadcasts to work!
#
arp add 128.48.144.255 ether ff:ff:ff:ff:ff:ff
# some standard parameters

ip ttl 16
tcp mss 216
tcp window 1500
#
# start up the servers
#
start telnet
start smtp
start ftp
start echo
start discard
start rip
#
domain cache size 150
domain suffix ucop.edu
route add default nt1 128.48.141.100

dopey is supposed to act as a gateway 144 <-> 141

From other hosts, I can ping 128.48.141.8 (dopey's adress on the 141 subnet),
but I can't ping any host on the 144 subnet.

I turned the trace on . So if ping 128.48.144.1 (dopey) from 128.48.144.2
(tintin), from 144.2 I get the following output:
Wed May 29 12:18:59 1991 - nt1 sent:
Ether: len 42 00:00:c0:c6:3f:23->ff:ff:ff:ff:ff:ff type ARP
ARP: len 28 hwtype 10 Mb Ethernet prot IP op REQUEST
sender IPaddr 128.48.144.2 hwaddr 00:00:c0:c6:3f:23
target IPaddr 128.48.144.1 hwaddr 00:00:00:00:00:00

on 144.1 I get the following input:
Wed May 29 14:14:11 1991 - nt2 recv:
Ether: len 60 00:00:c0:c6:3f:23->ff:ff:ff:ff:ff:ff type ARP
ARP: len 46 hwtype 10 Mb Ethernet prot IP op REQUEST
sender IPaddr 128.48.144.2 hwaddr 00:00:c0:c6:3f:23
target IPaddr 128.48.144.1 hwaddr 00:00:00:00:00:00

the ping is unsuccessful.

Is there something I am missing in the autoexec file ??

		Many Thanks in Advance,
		Camille Iwanowitsch Kayruzian
		opschk@ganges.ucop.edu, 415 987 03 62

UPH008@DDOHRZ11.BITNET (Wilhelm Becker) (05/31/91)

The rip add statement(s) for the broadcast addresse(s) of your subnets.
are missing, so that the hosts you ping don't know how to send the reply
to you.



    Wilhelm Becker               Grau, teurer Freund, ist alle Theorie,
                                 Und gruen des Lebens goldner Baum
    Institut fuer Physik
    Universitaet Dortmund          Goethe, Faust I

    EARN:  UPH008@DDOHRZ11.BITNET

stephen@drummond.arch.su.oz.au (Stephen Tolhurst <stephen>) (06/03/91)

Changing the attach command from:
	attach packet 0x60 en0 8 1500 
to
	attach packet 0x60 en0 3 1500
did the trick, though I don't understand why!  The only other trouble I 
had was with getting the 2nd interface configured.  According to the 
ka9q docs I should have been able to do
	attach packet 0x61 en1 3 1500 129.78.144.3
instead it only worked if I did
	ip addr 129.78.144.3
	attach packet 0x61 en1 3 1500

The mystery of why ka9q worked ok with the wd drivers and not with the 
clarkson ones will probably remain a mystery.
Stephen Tolhurst (Computer System Manager) (02) 692-3549 Fax: (02) 692-3031
Dept of Architectural Science     ACSnet: stephen@archsci.su.oz
Wilkinson Building G04            ARPA:    stephen%archsci.su.oz@uunet.uu.net
University of Sydney  2006        UUCP:    uunet!munnari!archsci.su.oz!stephen

opschk@GANGES.UCOP.EDU (06/05/91)

Hi, netters.
I am setting up ka9q as a router between 2 ethernets: 141 and 144 subnets:
Gateway PC has 2 wd8003e boards with adresses 144.8 and 141.8, Client PC
has  an adress of 144.2 ( 144 subnet has just 2 pc's ).

Gateway:

hostname dopey.ucop.edu
ip address 128.48.144.8
attach packet 0x66 nt2 3 1500 # this is on the 144 subnet
ip address 128.48.141.8
attach packet 0x65 nt1 10 1500 # this is on the 141 subnet

ifconfig nt1 netmask 0xffffff00 ip 128.48.141.8 broadcast 128.48.141.255
ifconfig nt2 netmask 0xffffff00 ip 128.48.144.8 broadcast 128.48.144.255

route add 128.48.141.0/24 nt1
route add 128.48.144.0/24 nt2
#route add 128.48.144/24 nt1 128.48.141.8 1
route add default nt1 128.48.141.100
#route add 128.48.141/24 nt2 128.48.144.8  1
# incorporate the local nameserver for lookups
#
domain addserver [128.48.141.1]  #nile
# for broadcasts to work!
#
arp add 128.48.141.255 ether ff:ff:ff:ff:ff:ff
arp add 128.48.144.255 ether ff:ff:ff:ff:ff:ff
# some standard parameters

ip ttl 255 # was 16
tcp mss 1024 # was 216
tcp window 4096 # 1500
#
# start up the servers
start telnet
start smtp
start ftp
start echo
start discard
start rip
rip add 128.48.141.255 30 1
rip add 128.48.144.255 30 1
#
domain cache size 150
domain suffix ucop.edu

Client PC:
hostname tintin.ucop.edu
ip address 128.48.144.2
attach packet 0x65 nt1 10 1500 # this is on the 144 subnet
ifconfig nt1 netmask 0xffffff00 ip 128.48.144.2 broadcast 128.48.144.255

route add 128.48.144.0/24 nt1
# incorporate the local nameserver for lookups
#
domain addserver [128.48.141.1]  #nile
#
# for broadcasts to work!
#
arp add 128.48.144.255 ether ff:ff:ff:ff:ff:ff
# some standard parameters

ip ttl 255
tcp mss 1024
tcp window 4096
#
# start up the servers
start telnet
start smtp
start ftp
start echo
start discard
start rip
#
domain cache size 150
domain suffix ucop.edu
route add default nt1 128.48.144.8
rip add 128.48.144.255 30 1


Pinging from nile( 128.48.141.1 ) produces :

8 nile /usr/users/opschk >ping 128.48.141.8
128.48.141.8 is alive
9 nile /usr/users/opschk >ping 128.48.144.8
128.48.144.8 is alive
10 nile /usr/users/opschk >ping 128.48.144.2
no answer from 128.48.144.2

Upon turning the tracing on , pinging 144.2 from 144.8/141.8 produces
no input to 144.2 at all,  it produces the following output on gateway:
sender IPaddr 128.48.144.8 hwaddr 00:00:c0:6d:2e:1c
target IPaddr 128.48.144.2 hwaddr 00:00:c0:c6:3f:23

arp on 144.2 gives:

IP addr		Type		Time Q Addr
128.48.144.255	10 Mb Ethernet	0	ff:ff:ff:ff:ff:ff

arp on gateway( 144.8/141.8 ) gives:

IP addr		Type		Time Q Addr
128.48.141.1	10 Mb Ethernet	2	08:00:2b:1a:7f:03
128.48.141.255	10 Mb Ethernet	0	ff:ff:ff:ff:ff:ff
128.48.141.2	10 Mb Ethernet	428	00:00:c0:c6:3f:23
128.48.144.255	10 Mb Ethernet	0	ff:ff:ff:ff:ff:ff

Pinging 144.8 from 144.2 (client) produces:

on 144.8 ( gateway ):

			nt2 recv:
Ether: len 60 00:00:c0:c6:3f:23->ff:ff:ff:ff:ff:ff type ARP
ARP: len 46 hwtype 10 Mb Ethernet prot IP op REQUEST
sender IPaddr 128.48.144.2 hwaddr 00:00:c0:c6:3f:23
target IPaddr 128.48.144.8 hwaddr 00:00:00:00:00:00

		     - nt2 sent:
Ether: len 42 00:00:c0:6d:2e:1c->00:00:c0:c6:3f:23 type ARP
ARP: len 28 hwtype 10 Mb Ethernet prot IP op REPLY
sender IPaddr 128.48.144.8 hwaddr 00:00:c0:6d:2e:1c
target IPaddr 128.48.144.2 hwaddr 00:00:c0:c6:3f:23

on 144.2 ( sender ):

		nt1 sent:
Ether: len 42 00:00:c0:c6:3f:23->ff:ff:ff:ff:ff:ff type ARP
ARP: len 28 hwtype 10 Mb Ethernet prot IP op REQUEST
sender IPaddr 128.48.144.2 hwaddr 00:00:c0:c6:3f:23
target IPaddr 128.48.144.8 hwaddr 00:00:00:00:00:00



I would greatly appreciate any suggestions, so that 144.2 can access and
be accessed by the rest.

			Many Thanks in Advance,
			Camille Kayruzian,
			opschk@ganges.ucop.edu, 415 987 03 62