Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 23:02:51 +0700
From:      Pavel Gubin <pg@ie.tusur.ru>
To:        freebsd-net@freebsd.org
Subject:   netgraph and ipx tunneling
Message-ID:  <20020507230250.C69343@ie.tusur.ru>

next in thread | raw e-mail | index | archive | help
Hello,

I have the following network setup:

                          Srv1              Srv2
  [nw3.12]--ipx/802.2--[freebsd4.4]--ip--[freebsd4.4]--ipx/eII--[clients]
     0x2    net=0x23  fxp1       IP1    IP2        xl0 net=0x56

I trying to setup ipx tunnel between Netware 3.12 and "clients" in remote
intranet in such a way:

Srv1:
- kernel with net options:
  INET,IPFIREWALL,IPFIREWALL_FORWARD,IPDIVERT,IPX,IPXIP,DUMMYNET
- net.ipx.ipx.ipxforwarding=1
- module if_ef loaded as KLD, compiled with options ETHER_II, ETHER_8022
- startup:
	ifconfig fxp1f2 ipx 0x23
	ngctl mkpeer iface dummy ipx
	ngctl msg ng0: broadcast
	ngctl mkpeer ng0: ksocket ipx inet/dgram/udp
	ngctl name ng0:ipx ipxtun
	ngctl msg ipxtun: bind inet/IP1:4444
	ngctl msg ipxtun: connect inet/IP2:4444
	ifconfig ng0 ipx 0x2356.0x2323

	IPXrouted -s

Srv2:
- kernel with net options:
  INET,IPFIREWALL,IPDIVERT,IPX,DUMMYNET
- net.ipx.ipx.ipxforwarding=1
- module if_ef not loaded
- startup:
	ifconfig xl0 ipx 0x56
	ngctl mkpeer iface dummy ipx
	ngctl msg ng0: broadcast
	ngctl mkpeer ng0: ksocket ipx inet/dgram/udp
	ngctl name ng0:ipx ipxtun
	ngctl msg ipxtun: bind inet/IP2:4444
	ngctl msg ipxtun: connect inet/IP1:4444
	ifconfig ng0 ipx 0x2356.0x3838

	IPXrouted -s

Then:
1) nw3.12's DISPLAY NETWORKS result:
 00000002  0/1   00000023  0/1   0000056  2/2   0002356  1/1

2) Srv1's netstat -rnf ipx:
	2.*		23.30840e17ae	UG	fxp1f2
			   ^^^^^^^^^^-----------(nw3.12's MAC)
	23.*		23.60b01a8ec2	U	fxp1f2
	56.*		2356.3838	UG	ng0
	2356.*		2356.2323	U	ng0

3) Srv2's netstat -rnf ipx:
	2.*		2356.2323	UG	ng0
	23.*		2356.2323	UG	ng0
	56.*		56.102dd9382	U	xl0
	2356.*		2356.3838	U	ng0

Seems that all OK, but clients did not see the Netware server :(

Where am I wrong?

-- 
Pavel Gubin
TUSC&R / Industrial Electronics dept / System Administrator
2:5005/14@fidonet / Phone +7-3822-423067 / ICQ 28835566

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020507230250.C69343>