NET User Reference Manual (NOS Version)
Phil Karn, KA9Q
1. The NET.EXE Program
The MS-DOS executable file net.exe provides Internet (TCP/IP),
NET/ROM and AX.25 facilities. Because it has an internal multi-
tasking operating system, net.exe can act simultaneously as a
client, a server and a packet switch for all three sets of proto-
cols. That is, while a local user accesses remote services, the
system can also provide those same services to remote users while
also switching IP, NET/ROM and AX.25 packets and frames between
other client and server nodes.
The keyboard and display is used by the local operator to control
both host and gateway level functions, for which a number of com-
mands are provided.
1.1. Installation
Net.exe uses the following directory structure:
/spool
/spool/help
/spool/mail
/spool/mqueue
/spool/rqueue
/spool/news
By default, the /spool directory is placed in the root directory
of the current drive. However, a subdirectory may be specified
with the -d command-line option described below. If a subdirec-
tory is given, the alias, autoexec.net, dialer, domain.txt and
ftpusers configuration files must also be located there.
The "/spool" directory and its sub-directories are used by the
bbs, SMTP and NNTP services. The areas, forward.bbs, history,
mail.log, rewrite and signatur configuration files are located
here.
1.2. net [-b] [-s <sockets>] [-d <directory>] [<startup file>]
June 7, 1991
- 2 -
1.2.1. -b
The -b option specifies the use of BIOS for console output; the
default is to write directly to the video display buffer. Use
this option if you are running under a windowing package and have
trouble with output "bleeding through" on top of other windows.
1.2.2. -s
The -s option specifies the size of the socket array to be allo-
cated within net.exe. This limits the number of network connec-
tions that may exist simultaneously. The default is 40.
1.2.3. -d
The -d option allows the user to specify a directory for the con-
figuration and spool files; it defaults to the root directory of
the system.
1.2.4. Startup file
After all command-line options, the name of a startup file may be
specified. If no startup file is specified, net.exe attempts to
open a file named autoexec.net in the configuration directory of
the current drive. If the file exists, it is read and executed
as though its contents were typed on the console as commands.
(See the Commands chapter.) This feature is useful for attaching
communication interfaces, configuring network addresses, and
starting the various services.
2. Console modes
The console may be in one of two modes: command mode and converse
mode. In command mode, the prompt net> is displayed and any of
the commands described in the Commands chapter may be entered.
In converse mode, keyboard input is processed according to the
current session.
Sessions come in many types, including Telnet, FTP, AX25, NETROM,
Ping, More, Hopcheck and Tip. In a Telnet, AX25, NETROM, or Tip
session, keyboard input is sent to the remote system and any out-
put from the remote system is displayed on the console. In a FTP
session, keyboard input is first examined to see if it is a known
local command; if so it is executed locally. If not, it is
"passed through" to the remote FTP server. (See the FTP Subcom-
mands chapter). In a Ping session the user may test the path to
a remote site, and in a More session, the user may examine a
local file. A Hopcheck session is used to trace the path taken by
packets to reach a specified destination. A Tip session provides
a "dumb terminal" service that bypasses all network protocols.
The keyboard also has cooked and raw states. In cooked state,
input is line-at-a-time; the user may use the line editing char-
acters ^U, ^R and backspace to erase the line, redisplay the line
June 7, 1991
- 3 -
and erase the last character, respectively. Hitting either
return or line feed passes the complete line up to the applica-
tion. In raw state, each character is immediately passed to the
application as it is typed.
The keyboard is always in cooked state in command mode. It is
also cooked in converse mode on an AX25, FTP or NET/ROM session.
In a Telnet session it depends on whether the remote end has
issued (and the local end has accepted) the Telnet WILL ECHO
option (see the echo command).
On the IBM-PC, the user may escape back to command mode by hit-
ting the F10 key. On other systems, the user must enter the
escape character, which is by default control-] (hex 1d, ASCII
GS). (Note that this is distinct from the ASCII character of the
same name). The escape character can be changed (see the escape
command).
In the IBM PC version, each session (including the command "ses-
sion") has its own screen. When a new session is created, the
command display is saved in memory and the screen is cleared.
When the command escape key (usually F10) is hit, the current
session screen is saved and the command screen is restored. When
a session is resumed, its screen is restored exactly as it
appeared when it was last current.
3. Commands
This chapter describes the commands recognized in command mode,
or within a startup file such as autoexec.net. These are given
in the following notation:
command
command literal_parameter
command subcommand <parameter>
command [<optional_parameter>]
command a | b
Many commands take subcommands or parameters, which may be
optional or required. In general, if a required subcommand or
parameter is omitted, an error message will summarize the avail-
able subcommands or required parameters. (Giving a '?' in place
of the subcommand will also generate the message. This is useful
when the command word alone is a valid command.) If a command
takes an optional value parameter, issuing the command without
the parameter generally displays the current value of the vari-
able. (Exceptions to this rule are noted in the individual com-
mand descriptions.)
Two or more parameters separated by vertical bar(s) denote a
choice between the specified values. Optional parameters are
shown enclosed in [brackets], and a parameter enclosed in <angle
brackets> should be replaced with an actual value or string. For
June 7, 1991
- 4 -
example, the notation <hostid> denotes an actual host or gateway,
which may be specified in one of two ways: as a numeric IP
address in dotted decimal notation (eg. 44.0.0.1), or as a sym-
bolic name listed in the file domain.txt.
All commands and many subcommands may be abbreviated. You only
need type enough of a command's name to distinguish it from oth-
ers that begin with the same series of letters. Parameters, how-
ever, must be typed in full.
Certain FTP subcommands (eg. put, get, dir, etc) are recognized
only in converse mode with the appropriate FTP session; they are
not recognized in command mode. (See the FTP Subcommands
chapter.)
Note that certain commands may have been configured out of a
given copy of net.exe to save disk and memory. If a command has
been configured out, it will not appear in the list produced by
the "?" command, nor will it be recognized by the command inter-
preter.
3.1. <CR>
Entering a carriage return (empty line) while in command mode
没有合适的资源?快使用搜索试试~ 我知道了~
TCP_IP协议源代码分析
共268个文件
c:159个
h:87个
s:13个
需积分: 9 42 下载量 22 浏览量
2008-11-05
11:54:08
上传
评论
收藏 647KB RAR 举报
温馨提示
TCP_IP协议源代码分析涉及TCP_IP协议里的各种协议的源代码
资源推荐
资源详情
资源评论
收起资源包目录
TCP_IP协议源代码分析 (268个子文件)
ip.h.bak 7KB
arp.h.bak 4KB
ppp.h.bak 2KB
scc.c 47KB
mailbox.c 41KB
domain.c 40KB
pi.c 37KB
drsi.c 29KB
bootpdip.c 29KB
ftpcli.c 28KB
pppipcp.c 28KB
ppplcp.c 27KB
tcpin.c 26KB
nr3.c 25KB
eagle.c 24KB
config.c 24KB
stdio.c 24KB
forward.c 23KB
smtpserv.c 22KB
nrcmd.c 22KB
bmutil.c 22KB
smtpcli.c 21KB
nr4.c 20KB
ppp.c 20KB
display.c 20KB
iproute.c 20KB
nntpcli.c 18KB
n8250.c 18KB
md5c.c 18KB
pppfsm.c 17KB
hs.c 17KB
TINYTCP.C 17KB
lapb.c 17KB
rip.c 17KB
main.c 16KB
ftpserv.c 16KB
sb.c 16KB
ppppap.c 16KB
bootpcmd.c 15KB
ip.c 15KB
slhc.c 14KB
popserv.c 14KB
kernel.c 14KB
socket.c 14KB
iface.c 14KB
mbuf.c 14KB
pc.c 13KB
pc100.c 13KB
files.c 13KB
alloc.c 13KB
pktdrvr.c 12KB
ax25cmd.c 12KB
bootpd.c 11KB
pppcmd.c 11KB
hapn.c 11KB
ax25.c 11KB
axsock.c 11KB
hop.c 10KB
tcpsock.c 10KB
smisc.c 10KB
dialer.c 10KB
dma.c 10KB
nrsock.c 9KB
popcli.c 9KB
arp.c 9KB
tcpuser.c 8KB
telnet.c 8KB
session.c 8KB
bootp.c 8KB
tcpcmd.c 8KB
dirutil.c 8KB
dos.c 8KB
trace.c 7KB
view.c 7KB
ipcmd.c 7KB
tcpsubr.c 7KB
tipmail.c 7KB
cmdparse.c 7KB
tcpout.c 7KB
icmp.c 7KB
ping.c 7KB
domhdr.c 6KB
slip.c 6KB
udp.c 6KB
ksubr.c 6KB
nrs.c 6KB
timer.c 6KB
misc.c 6KB
ax25subr.c 5KB
stktrace.c 5KB
nr4user.c 5KB
arpcmd.c 5KB
ax25user.c 5KB
nr4subr.c 5KB
axheard.c 5KB
tcphdr.c 4KB
iphdr.c 4KB
nr4mail.c 4KB
ax25dump.c 4KB
asy.c 4KB
共 268 条
- 1
- 2
- 3
资源评论
strong46066999
- 粉丝: 16
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功