[Prev][Next][Index]
Re: Linux TCP/IP problems on a local net.
I have installed Slackware 2.3 from the InfoMagic 4 CD-Rom set, both at
work and at home.
I would like to be able to either Telnet or FTP from other DOS machines
on a ethernet local network.
I have tried using the packet drivers and both NCSA telnetd and NUPOP
programs, and I have not been able to access the Linux machine .
Apparently the telnet does not "see" the Linux machine.
The same thin net wiring works fine for Novell and Lantastic access so I
know it is not a wiring problem.
I have gone over the SAG, the NAG, the Net-2 Howto and whatever else
seemed reasonable to read. There are really no clear instructions on how
to set up a standalone Network for DOS or windows connectivitiy.
I would appreciate any help on this subject. Enclosed are the relevant
config files etc. that should help pinpoint the problem. I think that I
may have erred in the Gateway, or nameserver stuff.
If anybody has a way of setting up NCSA telnet on 2 PC's to test the packet
drivers, I would appreciate actual setup files - config.tel from both
machines. I have tried setting up a Telnet client and Server and can
not get it to work. The Pktstat and most PKT checking programs find the
packet driver, so I really do not know where the problem is.
I would appreciate any suggestions. If anybody in the Tel Aviv - Holon
area would like to drop by ;-), even better. I can be reached at home at
03-5040664, or leave mail or a msg.
Thanks in advance for your help.
+----------------------------------------------------------------------------+
| Michael Resnick - Inspection Research & Technologies |
| System Manager : E-Mail : ila2036@zeus.datasrv.co.il |
+----------------------------------------------------------------------------+
# Slackware 2.3 install V 1.2.8 Kernel
# messages file in /var/adm - IDE with Network options enabled.
Nov 25 15:41:45 Mike-home1 syslogd: restart
Nov 25 15:41:46 Mike-home1 kernel: Kernel logging (proc) started.
Nov 25 15:41:46 Mike-home1 kernel: Console: colour EGA+ 80x25, 1 virtual console (max 63)
Nov 25 15:41:46 Mike-home1 kernel: Calibrating delay loop.. ok - 50.08 BogoMips
Nov 25 15:41:46 Mike-home1 kernel: Serial driver version 4.11 with no serial options enabled
Nov 25 15:41:46 Mike-home1 kernel: tty00 at 0x03f8 (irq = 4) is a 16450
Nov 25 15:41:46 Mike-home1 kernel: tty01 at 0x02f8 (irq = 3) is a 16450
Nov 25 15:41:46 Mike-home1 kernel: lp1 at 0x0378, using polling driver
Nov 25 15:41:46 Mike-home1 kernel: hda: DPEA-31080, 1033MB w/448KB Cache, LBA, CHS=525/64/63, MaxMult=32
Nov 25 15:41:46 Mike-home1 kernel: ide0: primary interface on irq 14
Nov 25 15:41:46 Mike-home1 kernel: Floppy drive(s): fd0 is 1.44M, fd1 is 1.2M
Nov 25 15:41:46 Mike-home1 kernel: FDC 0 is a 8272A
Nov 25 15:41:46 Mike-home1 kernel: Memory: 11100k/12288k available (632k kernel code, 384k reserved, 172k data)
Nov 25 15:41:46 Mike-home1 kernel: This processor honours the WP bit even when in supervisor mode. Good.
Nov 25 15:41:46 Mike-home1 kernel: Swansea University Computer Society NET3.019
Nov 25 15:41:46 Mike-home1 kernel: Swansea University Computer Society TCP/IP for NET3.019
Nov 25 15:41:46 Mike-home1 kernel: IP Protocols: ICMP, UDP, TCP
Nov 25 15:41:46 Mike-home1 kernel: Swansea University Computer Society IPX 0.29 BETA for NET3.019
Nov 25 15:41:46 Mike-home1 kernel: IPX Portions Copyright (c) 1995 Caldera, Inc.
Nov 25 15:41:46 Mike-home1 kernel: PPP: version 0.2.7 (4 channels) NEW_TTY_DRIVERS OPTIMIZE_FLAGS
Nov 25 15:41:46 Mike-home1 kernel: TCP compression code copyright 1989 Regents of the University of California
Nov 25 15:41:46 Mike-home1 kernel: PPP line discipline registered.
Nov 25 15:41:46 Mike-home1 kernel: SLIP: version 0.8.3-NET3.019-NEWTTY (4 channels) (6 bit encapsulation enabled)
Nov 25 15:41:46 Mike-home1 kernel: CSLIP: code copyright 1989 Regents of the University of California
Nov 25 15:41:46 Mike-home1 kernel: NE*000 ethercard probe at 0x320: 00 40 33 2a 77 c4
Nov 25 15:41:46 Mike-home1 kernel: eth0: NE2000 found at 0x320, using IRQ 10.
Nov 25 15:41:46 Mike-home1 kernel: ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Nov 25 15:41:46 Mike-home1 kernel: Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Nov 25 15:41:46 Mike-home1 kernel: Checking 'hlt' instruction... Ok.
Nov 25 15:41:46 Mike-home1 kernel: Linux version 1.2.8 (root@MikeHost-1) (gcc version 2.6.3) #1 Sat Nov 18 13:47:57 IST 1995
Nov 25 15:41:46 Mike-home1 kernel: Partition check:
Nov 25 15:41:46 Mike-home1 kernel: hda: disabled multiple mode
Nov 25 15:41:46 Mike-home1 kernel: hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 >
Nov 25 15:41:46 Mike-home1 kernel: VFS: Mounted root (ext2 filesystem) readonly.
Nov 25 15:41:46 Mike-home1 kernel: Adding Swap: 22140k swap-space
Nov 25 15:41:58 Mike-home1 login: ROOT LOGIN ON tty1
# Config File for Present Kernel.
# Automatically generated make config: don't edit
#
#
# General setup
#
# CONFIG_MATH_EMULATION is not set
CONFIG_BLK_DEV_FD=y
CONFIG_ST506=y
#
# Please see drivers/block/README.ide for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_IDECD is not set
# CONFIG_BLK_DEV_XD is not set
CONFIG_NET=y
# CONFIG_MAX_16M is not set
# CONFIG_PCI is not set
CONFIG_SYSVIPC=y
CONFIG_BINFMT_ELF=y
CONFIG_M486=y
#
# Loadable module support
#
# CONFIG_MODVERSIONS is not set
#
# Networking options
#
CONFIG_INET=y
CONFIG_IP_FORWARD=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_FIREWALL is not set
# CONFIG_IP_ACCT is not set
#
# (it is safe to leave these untouched)
#
# CONFIG_INET_PCTCP is not set
# CONFIG_INET_RARP is not set
CONFIG_INET_SNARL=y
# CONFIG_TCP_NAGLE_OFF is not set
CONFIG_IPX=y
#
# SCSI support
#
# CONFIG_SCSI is not set
#
# Skipping SCSI configuration options...
#
#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
# SL_SLIP_LOTS is not set
CONFIG_PPP=y
CONFIG_PLIP=y
# CONFIG_NET_ALPHA is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_3COM is not set
CONFIG_NET_ISA=y
# CONFIG_E2100 is not set
# CONFIG_DEPCA is not set
# CONFIG_EWRK3 is not set
# CONFIG_HPLAN_PLUS is not set
# CONFIG_HPLAN is not set
CONFIG_NE2000=y
# CONFIG_SK_G16 is not set
# CONFIG_NET_EISA is not set
# CONFIG_NET_POCKET is not set
#
# CD-ROM drivers (not for SCSI or IDE/ATAPI drives)
#
# CONFIG_CDU31A is not set
# CONFIG_MCD is not set
# CONFIG_SBPCD is not set
# CONFIG_AZTCD is not set
# CONFIG_CDU535 is not set
#
# Filesystems
#
CONFIG_MINIX_FS=y
# CONFIG_EXT_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_XIA_FS is not set
CONFIG_MSDOS_FS=y
CONFIG_UMSDOS_FS=y
CONFIG_PROC_FS=y
# CONFIG_NFS_FS is not set
# CONFIG_ISO9660_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_SYSV_FS is not set
#
# character devices
#
# CONFIG_CYCLADES is not set
CONFIG_PRINTER=y
# CONFIG_BUSMOUSE is not set
# CONFIG_PSMOUSE is not set
# CONFIG_MS_BUSMOUSE is not set
# CONFIG_ATIXL_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_FTAPE is not set
#
# Sound
#
# CONFIG_SOUND is not set
#
# Kernel hacking
#
# CONFIG_PROFILE is not set
#================================================================
# Fstab file
/dev/hda3 / ext2 defaults 1 1
/dev/hda1 /dosc msdos defaults 1 1
/dev/hda6 none swap sw
none /proc proc defaults 1 1
#===== Group file - Default.
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:
disk::6:root,adm
lp::7:lp
mem::8:
kmem::9:
wheel::10:root
floppy::11:root
mail::12:mail
news::13:news
uucp::14:uucp
man::15:man
users::100:games
nogroup::-1:
#======================= Host.conf - Default
order hosts, bind
multi on
#===================
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# Default runlevel.
id:5:initdefault:
# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S
# Script to run when going single user.
su:S:wait:/etc/rc.d/rc.K
# Script to run when going multi user.
rc:123456:wait:/etc/rc.d/rc.M
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t3 -rf now
# What to do when power fails (shutdown to single user).
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"
# If power is back before shutdown, cancel the running shutdown.
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"
# If power comes back in single user mode, return to multi user mode.
ps:S:powerokwait:/sbin/init 5
# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
# able to login !!
#
# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
c1:12345:respawn:/sbin/agetty 38400 tty1
c2:12345:respawn:/sbin/agetty 38400 tty2
c3:45:respawn:/sbin/agetty 38400 tty3
c4:45:respawn:/sbin/agetty 38400 tty4
c5:45:respawn:/sbin/agetty 38400 tty5
c6:456:respawn:/sbin/agetty 38400 tty6
# Serial lines
#s1:45:respawn:/sbin/agetty 19200 ttyS0
#s2:45:respawn:/sbin/agetty 19200 ttyS1
# Dialup lines
#d1:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0
#d2:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1
# Runlevel 6 used to be for an X-window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:6:wait:/etc/rc.d/rc.6
# End of /etc/inittab
#--------------------- inetd.conf file
#
# See "man 8 inetd" for more information.
#
# If you make changes to this file, either reboot your machine or send the
# inetd a HUP signal:
# Do a "ps x" as root and look up the pid of inetd. Then do a
# "kill -HUP <pid of inetd>".
# The inetd will re-read this file whenever it gets that signal.
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# Echo, discard, daytime, and chargen are used primarily for testing.
echo stream tcp nowait root internal
echo dgram udp wait root internal
discard stream tcp nowait root internal
discard dgram udp wait root internal
daytime stream tcp nowait root internal
daytime dgram udp wait root internal
chargen stream tcp nowait root internal
chargen dgram udp wait root internal
time dgram udp wait root internal
#
# These are standard services.
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/wu.ftpd
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
#
# Use this one instead if you want to snoop on telnet users (try to use this
# for ethical purposes, ok folks?) :
#telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetsnoopd
#
# The line below is set up for running Smail:
#smtp stream tcp nowait root /usr/sbin/tcpd /usr/bin/rsmtp -bs
#
# If you want to read NNTP news via TERM, comment out the nntp
# line below, and use a command like this once the TERM
# connection is up: tredir 119 my.nntp.host:119
# You'll also want to do this: set NNTPSERVER my.nntp.host ; export NNTPSERVER
nntp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.nntpd
#
# Shell, login, exec and talk are BSD protocols.
shell stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rshd
login stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rlogind
#exec stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rexecd
talk dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.ntalkd
ntalk dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.ntalkd
#
# Pop mail servers
#pop2 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.pop2d
pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.pop3d
#
# The Internet UUCP service.
uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/lib/uucp/uucico -l
#
# Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
# Since these can be security holes, they are commented out by default.
#tftp dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.tftpd
#bootps dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.bootpd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers." Many sites choose to disable
# some or all of these services to improve security.
finger stream tcp nowait daemon /usr/sbin/tcpd /usr/sbin/in.fingerd
systat stream tcp nowait guest /usr/sbin/tcpd /usr/bin/ps -auwwx
netstat stream tcp nowait guest /usr/sbin/tcpd /bin/netstat -f inet
#
# Ident service is used for net authentication
auth stream tcp nowait root /usr/sbin/in.identd in.identd
#
# These are to start Samba, an smb server that can export filesystems to
# Pathworks, Lanmanager for DOS, Windows for Workgroups, Windows95, Lanmanager
# for Windows, Lanmanager for OS/2, Windows NT, etc. Lanmanager for dos is
# available via ftp from ftp.microsoft.com in bussys/MSclient/dos/. Please read
# the licensing stuff before downloading. Use the TCP/IP option in the client.
# Add your server to the \etc\lmhosts (or equivalent) file on the client.
netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd
#
# End of inetd.conf.
#---------------------------------
#; named.boot file
; boot file for name server
;
;directory /etc
; type domain source host/file backup file
;cache . root.cache
;domain DOMAIN
;primary DOMAIN named.hosts
;primary 0.0.127.IN-ADDR.ARPA named.local
;primary IPREVERSED.IN-ADDR.ARPA named.rev
;
;primary Berkeley.EDU berkeley.edu.zone
;primary 32.128.IN-ADDR.ARPA ucbhosts.rev
;secondary CC.Berkeley.EDU 128.32.137.8 128.32.137.3 cc.zone.bak
;secondary 6.32.128.IN-ADDR.ARPA 128.32.137.8 128.32.137.3 cc.rev.bak
;forwarders 10.0.0.78 10.2.0.78
; slave
#-------------------------------- Networks file
#
# networks This file describes a number of netname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
#
loopback 127.0.0.0
localnet 192.72.1.0
# End of networks.
#---------------------------------- Profile file.
# commands common to all logins
export OPENWINHOME=/usr/openwin
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man/preformat:/usr/man:/usr/X11/man:/usr/openwin/man
export HOSTNAME="`cat /etc/HOSTNAME`"
export LESSOPEN="|lesspipe.sh %s"
PATH="$PATH:/usr/X11/bin:/usr/andrew/bin:$OPENWINHOME/bin:/usr/games:."
LESS=-MM
# I had problems using 'eval tset' instead of 'TERM=', but you might want to
# try it anyway. I think with the right /etc/termcap it would work great.
# eval `tset -sQ "$TERM"`
if [ "$TERM" = "" -o "$TERM" = "unknown" -o \
"`echo $TERM | cut -b1-3`" = "con" ]; then
TERM=console
fi
#PS1='`hostname`:`pwd`# '
if [ "$SHELL" = "/bin/pdksh" -o "$SHELL" = "/bin/ksh" ]; then
PS1="! $ "
elif [ "$SHELL" = "/bin/zsh" ]; then
PS1="%m:%~%# "
elif [ "$SHELL" = "/bin/ash" ]; then
PS1="$ "
else
# ---------------------------------- RC.inet
#! /bin/sh
#
# rc.inet1 This shell script boots up the base INET system.
#
# Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93
#
HOSTNAME=`cat /etc/HOSTNAME`
# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0
# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the
# eth0 interface. If you're only using loopback or SLIP, don't include the
# rest of the lines in this file.
# Edit for your setup.
IPADDR="192.72.1.1" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="192.72.1.0" # REPLACE with YOUR network address!
BROADCAST="192.72.1.255" # REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY="192.72.1.0" # REPLACE with YOUR gateway address!
# Uncomment the line below to initialize the ethernet device.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
# /sbin/route add default gw ${GATEWAY} metric 1
# End of rc.inet1
#--------------------------------- rc.loc
#!/bin/sh
# Put any local setup commands in here
# Running gpm
echo "Running gpm..."
gpm -t ms &
#--------------------------- rc.S
#!/bin/sh
#
# /etc/rc
#
# These commands are executed at boot time by init(8).
# User customization should go in /etc/rc.local.
PATH=/sbin:/usr/sbin:/bin:/usr/bin
# enable swapping
/sbin/swapon -a
# Start update.
/sbin/update &
# Test to see if the root partition is read-only, like it ought to be.
READWRITE=no
if echo -n >> "Testing filesystem status"; then
rm -f "Testing filesystem status"
READWRITE=yes
fi
# Check the integrity of all filesystems
if [ ! $READWRITE = yes ]; then
/sbin/fsck -A -a
# If there was a failure, drop into single-user mode.
if [ $? -gt 1 ] ; then
echo
echo
echo "**************************************"
echo "fsck returned error code - REBOOT NOW!"
echo "**************************************"
echo
echo
/bin/login
fi
# Remount the root filesystem in read-write mode
echo "Remounting root device with read-write enabled."
/sbin/mount -w -n -o remount /
if [ $? -gt 0 ] ; then
echo
echo "Attempt to remount root device as read-write failed! This is going to"
echo "cause serious problems... "
echo
echo "If you're using the UMSDOS filesystem, you **MUST** mount the root partition"
echo "read-write! You can make sure the root filesystem is getting mounted "
echo "read-write with the 'rw' flag to Loadlin:"
echo
echo "loadlin vmlinuz root=/dev/hda1 rw (replace /dev/hda1 with your root device)"
echo
echo "Normal bootdisks can be made to mount a system read-write with the rdev command:"
echo
echo "rdev -R /dev/fd0 0"
echo
echo "You can also get into your system by using a bootkernel disk with a command"
echo "like this on the LILO prompt line: (change the root partition name as needed)"
echo
echo "LILO: mount root=/dev/hda1 rw"
echo
echo "Please press ENTER to continue, then reboot and use one of the above methods to"
echo -n "get into your machine and start looking for the problem. "
read junk;
fi
else
echo "Testing filesystem status: read-write filesystem"
if [ ! -d /DOS ]; then # no warn for UMSDOS (kind of a bad test, but...)
cat << EOF
*** ERROR: Root partition has already been mounted read-write. Cannot check!
For filesystem checking to work properly, your system must initially mount
the root partition as read only. Please modify your kernel with 'rdev' so that
it does this. If you're booting with LILO, add a line:
read-only
to the Linux section in your /etc/lilo.conf and type 'lilo' to reinstall it.
If you boot from a kernel on a floppy disk, put it in the drive and type:
rdev -R /dev/fd0 1
If you boot from a bootkernel disk, or with Loadlin, you can add the 'ro' flag.
This will fix the problem *AND* eliminate this annoying message. :^)
EOF
echo -n "Press ENTER to continue. "
read junk;
fi
fi
# remove /etc/mtab* so that mount will create it with a root entry
/bin/rm -f /etc/mtab* /etc/nologin /var/adm/utmp
# mount file systems in fstab (and create an entry for /)
# but not NFS because TCP/IP is not yet configured
/sbin/mount -avt nonfs
# Looks like we have to create this.
cat /dev/null > /var/adm/utmp
# Configure the system clock.
# This can be changed if your system keeps GMT.
if [ -x /sbin/clock ]; then
/sbin/clock -s
fi
# Setup the /etc/issue and /etc/motd to reflect the current kernel level:
# THESE WIPE ANY CHANGES YOU MAKE TO /ETC/ISSUE AND /ETC/MOTD WITH EACH
# BOOT. COMMENT THEM OUT IF YOU WANT TO MAKE CUSTOM VERSIONS.
# echo > /etc/issue
# echo Welcome to Linux `/bin/uname -a | /bin/cut -d\ -f3`. >> /etc/issue
# echo >> /etc/issue
# echo "`/bin/uname -a | /bin/cut -d\ -f1,3`. (POSIX)." > /etc/motd
# Run serial port setup script:
# (CAREFUL! This can make some systems hang if the rc.serial script isn't
# set up correctly. If this happens, you may have to edit the file from a
# boot disk)
#
# . /etc/rc.d/rc.serial
#------------------------------- Resolv.conf
domain test1.net
# nameserver 192.72.1.0
#