Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto: NCPFS & NDS over IPX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Radi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 108

PostPosted: Thu Apr 15, 2004 5:50 am    Post subject: Howto: NCPFS & NDS over IPX Reply with quote

Here's a little description how to mount Netware Volumes from a Novel Netware Server with NDS running over IPX.

Contents:

    1. Kernel Setup
      1.1 Enabling IPX in the kernel
      1.2 Compiling the IPX module
      1.3 Loading IPX Module

    2. Installing ncpfs

    3. Getting IPX to work
      3.1 Configuring IPX Interface
      3.2 Testing your IPX connection
      3.3 IPX init script

    4. Mounting Netware Volumes
      4.1 Logging in to Netware Tree
      4.2 Mapping Network volumes
      4.3 Logout of tree and server
      4.4 Ncpfs init script


    1. Compiling IPX module
      1.1 Enabling IPX in the kernel


At first we have to configure the kernel, thats quite easy, because we only have to add IPX as module.

Code:

cd /usr/src/linux
make menuconfig

Code:

Networking options  --->
           <M> The IPX protocol
            [ ]   IPX: Full internal IPX network
File systems  --->
           Network File Systems  --->
                       <M> NCP file system support (to mount NetWare volumes)
                       [*]   Packet signatures
                       [*]   Proprietary file locking
                       [*]   Clear remove/delete inhibit when needed
                       [*]   Use NFS namespace if available
                       [*]   Use LONG (OS/2) namespace if available
                       [*]   Lowercase DOS filenames
                       [*]   Use Native Language Support
                       [*]   Enable symbolic links and execute flags


You don't need add Full internal IPX network because it's only needed if you use your IPX box as a router. But it wouldn't be a problem if you put it in anyway. I enabeld all functions available for the ncpfs module, because it depends how the Novell Server is configured, and in that way its should work in any way.
When you have done this, you can compile your modules.

      1.2 Compiling the modules


Code:

make modules modules_install


Now you can try to load the modul, to see if it works.

      1.3 Loading modules


Code:

modprobe ipx
modprobe ncpfs


If you encounter problems, such as unresolved symbols you probably have to rebuild your whole kernel to get it work.

    2. Installing ncpfs


Simplay emerge it.

Code:

emerge ncpfs


There is also a package called ipx-utils, which provides you with the basic ipx functions, but you don't need it, because the ipx-tools are included in the ncpfs package.

    3. Getting IPX to work.
      3.1 Configuring IPX Interface


Your IP network should be started at first, normally that happens at boot time. Now you can execute the IPX commands.

Code:

ipx_interface add -p eth0 802.3


the command add is used to add an interface, the are also delall to delete all ipx interfaces and del which deletes an single interface (here you have to add the device and the frametype you used during initalisation). -p is used to set eth0 as default ipx Interface in case you want to have more then only on network card configured with IPX. eth0 is the network device as you know it from ifconfig. 802.3 is the frametype, that the protocol uses, for ethernet twisted pair it is 802.3, for tokenring 802.2, and for ethernet with coaxial cable it is EtherII.
In /proc/net you can find some files regarding Information on your IPX Interfaces.

Code:

cat /proc/net/ipx_interface


      3.2 Testing your IPX connection.


Simply type

Code:

slist


and you should see a list of your local netware servers.

Code:

Known NetWare File Servers                          Network   Node Address
--------------------------------------------------------------------------
ZZ01                                                60805001  000000000001
YY01                                                0FAFD224  000000000001
ZZ02                                                60805002  000000000001
XX01                                                05C2E0C1  000000000001
WW01                                                044A2035  000000000001


Now you can go on the fileservice part.

      3.3 IPX init script


/etc/conf.d/ipx
Code:

#this attempts auto-configuration
IPX_AUTO_PRIMARY=off
IPX_AUTO_INTERFACE=off
IPX_CONFIGURED=yes
# for manual configuration, set IPX_CONFIGURED=yes,
# and set the options below for your system
IPX_DEVICE=eth0
IPX_FRAME=802.3 # either 802.2, 802.3 or EtherII
IPX_INTERNAL_NET=no
IPX_NETNUM=0 # your internal network number
# routing options
IPX_SERVER_ROUTE=no # setup route to external server?
IPX_SERVER_NETNUM=0x60805001 # your server's internal network number
IPX_SERVER_NODENUM=000000000001 # your server's node number


/etc/init.d/ipx
Code:

#!/sbin/runscript

depend() {
        use logger
        need net
}

start() {
        ebegin "Starting IPX"
        if [ ${IPX_CONFIGURED} = "yes" ]; then
                if [ ${IPX_INTERNAL_NET} = "yes" ]; then
                        ipx_internal_net add ${IPX_NETNUM}
                else
                        ipx_interface add -p ${IPX_DEVICE} \
                                ${IPX_FRAME} \
                                ${IPX_NETNUM}
                fi
                if [ ${IPX_SERVER_ROUTE} = "yes" ]; then
                        ipx_route add ${IPX_SERVER_NETNUM} \
                                ${IPX_NETNUM} \
                                ${IPX_SERVER_NODENUM}
                fi
        fi
        ipx_configure \
                --auto_primary=${IPX_AUTO_PRIMARY} \
                --auto_interface=${IPX_AUTO_INTERFACE}
        eend $?
}

stop() {
        ebegin "Stopping IPX"
        ipx_configure --auto_primary=off --auto_interface=off
        ipx_interface delall
        eend $?
}


    4. Mounting Netware Volumes
      4.1 Loging in to Netware Tree


Loging into a Novell Netware Tree is very simple.

Code:

ncplogin -T YOURTREE -U YOURUSERNAME.YOUR.CONTEXT -l


ncplogin is the command to login to a tree , with -T you define your Novell tree. With -U you specify your username and your context (There is also an -X Option to specify the context indepdently from the username, but that doesn't worked for me), you need to know a valid username, context and password. With -l ncpmount will automaticly create a mount point at /mnt/ncp/SERVER/VOLUME where the SYS Partition of your Novell Primary Server will be mounted.
Now you are loged into the the Novell tree and we can start to map directorys of the DAT Volume (where you should have stored your data).

      4.2 Mapping Netware Volumes


Code:

ncpmap -S ZZ01 -V DAT -l


ncpmap is the command to mount Novell Volumes from the Server of your choice in your local tree. -S specifies the server, from where you want to mount the Network drive. In this case, its the DAT Volume, with -l it will be mounted like the SYS Volume in /mnt/ncp/ZZ01/DAT. With -R you can mount a specific Directory that is located on the volume.

      4.3 Logout of tree and server


With

Code:

ncplogout -a


you can logout of the tree and all Servers you are connected to.

      4.4 Ncpfs init script


/etc/init.d/ncp
Code:

#!/sbin/runscript
depend() {
        use logger
        need ipx
}

start() {
        ebegin "Starting NCP Login"
        sleep 1
        ncplogin -T YOURTREE -U YOURUSERNAME.YOUR.CONTEXT -P passwort -l
        echo "Mounting Volumes"
        ncpmap -S ZZ01 -V DAT -l
        eend $?
}

stop() {
        ebegin "Stopping NCP"
        ncplogout -a
        eend $?
}


I hope this will help someone out there, and i also hope, that everything here is correct.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Jun 14, 2004 8:31 pm    Post subject: Reply with quote

Thanks -- good work!

N.B.:

If things aren't working and generating errors like "server not found" with a manual configuration, try autoconfiguration.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
raduz
n00b
n00b


Joined: 22 Jul 2004
Posts: 2

PostPosted: Thu Sep 02, 2004 10:00 am    Post subject: Reply with quote

Got it working, looks good. When I have connected using NDS way, ie. logging in tree, not just bindery connections to single server, I got another unexpected bonus. All of sudden I'm able to receive Netware pop-up messages via KWrited window (and I'm glad for those, as I use them under Windows a lot). Now I would like to find other part of this funcionality :-) Is it possible to send Netware messages from Linux/Gentoo/KDE to another Novell clients on the network?
Back to top
View user's profile Send private message
blackhowling
n00b
n00b


Joined: 04 May 2004
Posts: 4
Location: jakarta

PostPosted: Tue Sep 14, 2004 1:29 am    Post subject: Reply with quote

Hii all . I have already follow the instructions above , but why i still can't connect to my server

nb : my server only use ipx .

thanx b4 :D :D
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Sep 28, 2004 6:52 pm    Post subject: Reply with quote

ncplogin gives me a wrong password error. (-669)

However, ...

Code:
$ ncpmount -b -S SERVERNAME -U USERNAME -C /mount/point


Worked for me (afaik, at least it let me mount my server).

Odd that there is no -b option on ncplogin.. Or did I miss something?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Radi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 108

PostPosted: Wed Sep 29, 2004 10:59 am    Post subject: Reply with quote

ncplogin is only for connecting to the Novell NDS, because it only connects for mounting other drives use ncpmap
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Sep 29, 2004 4:11 pm    Post subject: Reply with quote

Ooh... Ok.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Oct 26, 2004 5:53 pm    Post subject: Reply with quote

A month more experienced in Linux, possibly a newer version of files, and MOST IMPORTANT .. I learned to read! I changed the ZZS01 into the script to fit my server name .. Yeah..

So this works. Fantastic tip.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Funky Nico
n00b
n00b


Joined: 27 Oct 2004
Posts: 6
Location: Paris

PostPosted: Tue Feb 01, 2005 8:42 am    Post subject: Reply with quote

Ok but what should we do with a TCP connection.
Novell is not only on IPX.

I just install a novell client and Console One.
It's working but I'm not able to contact any server so
I can't log into my tree.
I should Configure something to get SLP information.

Thanks for help.
_________________
Nicolas !
Back to top
View user's profile Send private message
Funky Nico
n00b
n00b


Joined: 27 Oct 2004
Posts: 6
Location: Paris

PostPosted: Wed Feb 02, 2005 9:49 am    Post subject: Reply with quote

Under Novell 5.X and after...

You can log into Novell using this command
Quote:

ncplogin -S [server_ip] -U [login.context] -A [serveur dns name] -l


You can mount Novell partition using this command
Quote:

ncpmount -S [server_ip] -U [login.context] -V [serveur volume] -A [serveur dns name] [mount point]


And it works !
The -A option is needed to mount it under UDP
see the man page

Quote:

-A dns name (mount option ipserver=dns name)
When you are mounting volumes from NetWare 5 server over UDP, you must
specify dns name of server here and logical server name in -S (or in
server=). This name is used to switch ncpmount into UDP mode and to spec-
ify server to connect. Currently, DNS is only supported IP name resolu-
tion protocol. There is currently no support for SLP.


I didn't manage to use Novel Client and ConsoleOne ...
_________________
Nicolas !
Back to top
View user's profile Send private message
Gav`
n00b
n00b


Joined: 26 Feb 2004
Posts: 37

PostPosted: Wed Mar 30, 2005 12:07 pm    Post subject: Reply with quote

As I understand it, ncpmount is used to give a direct (almost bindery-esque) connection to a single server, whereas ncplogin/ncpmap does it the Windows way and authenticates you to the tree and maps drives centrally authenticated?

Also, this guide seems also to work with TCP/IP only servers like ours, with the addition of the -A $dns_name option and -o tcp (apparently TCP gives better results than UDP, but I haven't tested this yet)
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Fri Feb 15, 2008 4:21 pm    Post subject: Reply with quote

okay i have a question

i start up my vpn connection, and i test that it works [i ping some servers from vpn, vnc onto them etc.]

i know that netware server is at 10.1.0.1 (since that's how i login from inside the company to netware).

i do everything according to the guide, setting ipx on tun0, and slist lists nothing :

slist: Server not found (0x8847) in ncp_open

are there any known workarounds for that?
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Wed Mar 05, 2008 10:01 am    Post subject: Reply with quote

Thank you for this HowTo. If you have trouble with german umlauts then try this:

ncplogin -T <Baum> -U <User> -l -p cp437 -y utf8
ncpmap -S <Server> -V <Volume> -l -p cp437 -y utf8

-> cp437 (codepage novell)
-> utf8 (codepage linux)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum