Copyright (c) 1994 Andrei B. Ioudine Portion copyright (c) relcom.lan community Ноябрь 1994 года, Новосибирск

Простые файлы конфигурации

Простой NET.CFG для обычной сетевой оболочки

1. Sample NET.CFG

# Example file NET.CFG for conventional shells
PB buffers=6
show dots=on
signature level=0
# use only if more that one indented "protocol IPX..." line exists
protocol IPX
 bind #1
# use only if more that one indented "protocol IP..." line exists
protocol KERMIT
 bind #1
# Below is for Novell's Lan WorkPlace for DOS
Protocol TCPIP
 PATH SCRIPT d:\lwp41\net\SCRIPT
 PATH PROFILE d:\lwp41\net\PROFILE
 PATH LWP_CFG d:\lwp41\net\HSTACC
 PATH TCP_CFG d:\lwp41\net\TCP
 ip_router 129.123.1.254
 ip_netmask 255.255.255.0
 ip_address 129.123.1.145
 tcp_sockets 16
 udp_sockets 8
 raw_sockets 1
# nb_sessions 4
# nb_commands 8
# nb_adapter 0
 nb_domain usu.edu
# bind slip_ppp
Link Support
 Buffers 7 1500
 MemPool 2048
Link Driver NE2000
 Frame Ethernet_II
 Port 360
 Int 5
 Protocol IPX 8137 Ethernet_II
 Protocol IP 0800 Ethernet_II
 Protocol ARP 0806 Ethernet_II
 Protocol RARP 8035 Ethernet_II
Link Driver SLIP_PPP
 DIRECT YES BAUD 9600
 OPEN ACTIVE
 TCPIPCOMP VJ
 PCOMP YES
 PORT 3F8
 INT 4
 FRAME SLIP
# FRAME PPP
 Protocol IP 0800 SLIP
link driver IPTUNNEL
 gateway 129.123.1.123

Простой NET.CFG для оболочки VLM

# Example file NET.CFG for VLM shells
# Don't forget to say lastdrive=z in config.sys!
# comments are ; text or a line starting with #
Netware dos requester
 checksum=on ; off=speedup high quality links
 true commit=on ; off=let server buffer writes
 auto reconnect=off ; off=do not load auto.vlm
;; cache buffers=0 ; 0=removes cache (default is pretty good)
 network printers=1 ; shrinks print.vlm
 average name length=24 ; shrinks connection table
;; recommend trying defaults for the load low pair shown below
;; load low conn=off ; off=put connection table in high memory
;; load low ipxncp=off ; off=put IPX material in high memory
 print buffer size=0
 signature level=0 ; 0=don't load security.vlm
 read only compatibility=on
 first network drive=n
 preferred server=edu-usu-netlab2
; preferred tree=UTAH_MICRO_NETS
; name context="O=USU"
; VLM selection, order sensitive -
; For Bindery include bind and netx, omit nds.
; Also preferred server is read for Bindery only.
; For Directory Services include nds, omit bind and netx.
; Also preferred tree and name context are read for DS only.
 use defaults=off ; off=use explict list of vlms which follow
 vlm=conn.vlm ; Connection tables
 vlm=ipxncp.vlm ; NCP over IPX
 vlm=tran.vlm ; Transport services worker
 vlm=security.vlm ; Security, optional
;; vlm=nds.vlm ; DS, NCP Directory Services
 vlm=bind.vlm ; Bindery, NCP
 vlm=nwp.vlm ; Transport services worker
 vlm=fio.vlm ; File i/o
 vlm=general.vlm ; General support routines
 vlm=redir.vlm ; Redirector
 vlm=print.vlm ; Print services, optional
 vlm=netx.vlm ; Bindery, shell compatibility
; vlm=rsa.vlm ; DS, RSA encryption, optional; vlm=auto.vlm ; DS,
autoreconnect/retry, optional
; vlm=nmr.vlm ; Managment responder, optional
Netx
 show dots=on
## Below this line material (board drivers) is the same as for NetWare
3.11
## net.cfg. Please do not trash with unrelated commands.
Link Support
 Buffers 7 1500
 MemPool 2048
 etc as for regular shells.

Простой батничек для оболочки VLM

@echo off
set nwlanguage=ENGLISH
lsl.com
ne2000.com
ipxodi /d
vlm /mX /v4 /c=c:\nwclient\net.cfg
@echo on
 /d omits diagnostics responder, saves memory
 /mX puts shell in eXtended memory, /v4 is extra verbose during
loading
 /c is path to net.cfg in case there's confusion

Примеры использования ODI+ODIPKT или использование пакетного драйвераи ipx over packet driver.

autoexec.bat:
==================================================================
REM загрузка пакетного драйвера. -n - поддержка обеих фреймов, -w
для WINDOWS
NE2000.COM -n -n 0x6E 0x5 0x340
REM загрузка виртуального пакетного драйвера для WINSOCK.DLL
WINPKT.COM 0x6E
REM загрузка IPX OVER PACKET DRV (by BYU Copyright 1989)
IPXPKT
REM загрузка SHELL-а
NETX
===================================================================
а вот другой вариант, используя ODI драйвер и ODIPKT SHIM для получения интерфеса как у пакетного драйвера. Для нас это повысило производительность в сети примерно на 10% по сравнению с предыдущим вариантом:
AUTOEXEC.BAT:
===================================================================
REM загрузка LINK SUPPORT LEVEL
LSL
REM загрузка MLID драйвераNE2000
REM загрузка IPX
IPXODI
REM загрузка SHELL-а
NETX
REM загрузка ODI TO PKT SHIM на прервание 110 (0x6E) с использованием
REM фрейма под номером 1 (см. NET.CFG, нумерация с 0)
ODIPKT 1 110
REM загрузка виртуального пакетного драйвера для WINSOCK.DLL
WINPKT 0x6E
REM конец
==================================================================
а вот соответствующий этому случаю NET.CFG:
==================================================================
Link support
     buffers 6 1600
Protocol IPX
     BIND NE2000
Link driver ne2000
     int 5
     port 340
     envelope type ETHERNET_802.3
     envelope type ETHERNET_II
==================================================================