Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 1995 19:00:14 -0500
From:      mcaughey@infi.net (Michael Caughey)
To:        questions@FreeBSD.org
Subject:   ETHER-NET...Need Help!
Message-ID:  <199503310000.TAA04144@larry.infi.net>

next in thread | raw e-mail | index | archive | help
I'm running FreeBSD 2.0 from Walnut Creek.  

Heres what I have...

3 COM 3c509b EtherNet card set up on ep0.  That part is good.

after a complete boot I give the command:

ifconfig ep0 inet A.B.C.1 up netmask 255.255.255.0 broadcast A.B.C.255

netstat -i      produces:
  
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
lp0*  1500  <Link>                             0     0        0     0     0
ep0   1500  <Link>22.fc.13.e3.0f.12            0     0       16     0     0
ep0   1500  A.B.C       localhost              0     0       16     0     0
lo0   65532 <Link>                            22     0       22     0     0
lo0   65532 A.B.C       localhost             22     0       22     0     0
ppp0* 1500  <Link>                             0     0        0     0     0
ppp1* 1500  <Link>                             0     0        0     0     0
sl0*  552   <Link>                             0     0        0     0     0
sl1*  552   <Link>                             0     0        0     0     0
 
netstat -r      produces:

Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use  Interface
A.B.C            link#2             UC          0        0  ep0
localhost        localhost          UH          0       22  lo0
224              localhost          US          0        0  lo0


I'm using Lantastic for TCP/IP to connect via a LAntastic net work to the
UNIX BOX.  They ( LAntastic Tech Support) said that there is something about
the UNIX box has to talk with the frame type of EtherNet 2.  Is that in the
Ethernet card? in Unix?  Am I set up correctly?  Here is my /etc/hosts,
/etc/netstart and /etc/networks files.



--------/etc/hosts---------------------
# $Id: hosts,v 1.4 1994/06/24 23:50:16 wollman Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution order.
#
#127.0.0.1 localhost localhost.my.domain
A.B.C.1	localhost	localhost.my.domain
#
# Imaginary network.
#10.0.0.2		myname.my.domain myname
#10.0.0.3		myfriend.my.domain myfriend
#
# According to RFC 1597, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
#        10.0.0.0        -   10.255.255.255
#        172.16.0.0      -   172.31.255.255
#        192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers.  PLEASE PLEASE PLEASE do not try
# to invent your own network numbers but instead get one from your
# network provider (if any) or from the Internet Registry (ftp to
# rs.internic.net, directory `/templates').
#
A.B.C.1    mgs mgs
----------------------------------------


----------/etc/networks-----------------
#	@(#)networks	5.1 (Berkeley) 6/30/90
#
# Your Local Networks Database
#
your-net	A.B.C.0    			# your comment
your-netmask	255.255.255.0			# subnet mask for your-net

#
# Your subnets
#
#subnet1		127.0.1		alias1		# comment 1
#subnet2		127.0.2		alias2		# comment 2

#
# Internet networks (from nic.ddn.mil)
#
------------------------------------------


--------/etc/netstart---------------------
#!/bin/sh -
#
#	$Id: netstart,v 1.17 1994/11/07 04:02:25 phk Exp $
#	From: @(#)netstart	5.9 (Berkeley) 3/30/91

defaultrouter=NO
routedflags=-q
timedflags=NO
xntpdflags="NO"
ntpdate="NO"
rwhod=NO
sendmail_flags="-bd -q30m"
amdflags="NO"
nfs_client=NO
nfs_server=NO
name_server=NO
savecore=NO
#kerberos_server=YES
#gated=YES

# my-name is my symbolic name
# my-netmask is specified in /etc/networks
#
if [ -z "`hostname -s`" ] ; then
	hostname=`cat /etc/myname`          
	hostname $hostname
fi

for i in /etc/hostname.*
do
	ifn=`expr $i : '/etc/hostname\.\(.*\)'`
	if [ -e /etc/hostname.$ifn ]; then
		if [ -e /etc/start_if.$ifn ]; then
			sh /etc/start_if.$ifn $ifn
		fi
		ifconfig $ifn `cat /etc/hostname.$ifn`
		ifconfig $ifn
	fi
done

# set the address for the loopback interface
ifconfig lo0 inet localhost

# set interface for multicasts to default interface
# this needs to happen before router discovery
route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname


if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
	route add default $defaultrouter
elif [ -f /etc/defaultrouter ] ; then
	route add default `cat /etc/defaultrouter`
fi

# use loopback, not the wire
# route add $hostname localhost
---------------------------------------------------------


The only thing I changed was the A.B.C  each A.B.C is equal to the other
A.B.C's.  I can ping A.B.C.1 from the UNIX Box but not from the workstation
who is set up as A.B.C.8 with Lantastic TCP/IP.  I can't ping from the work
station either, except to myself.



Any amd all help welcomed !



Thanks in advance.
 ------------------------------------------
| Michael Caughey.                         |
| mcaughey@infi.net                        |
| running FreeBSD 2.0!                     |
 ------------------------------------------




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