*BSD News Article 44348


Return to BSD News archive

#! rnews 2604 sserve.cc.adfa.oz.au
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!agis!gatech!news.sprintlink.net!hookup!news.Direct.CA!cynic.portal.ca!curt
From: curt@cynic.portal.ca (Curt Sampson)
Newsgroups: comp.unix.bsd
Subject: Re: Help! I can't communicate!
Date: 18 May 1995 02:47:19 GMT
Organization: Internet Direct, Inc.
Lines: 65
Message-ID: <3pecfn$37c@stud.Direct.CA>
References: <5117cb$f419.3a7@limper.gsa.gov>
NNTP-Posting-Host: cynic.portal.ca

In article <5117cb$f419.3a7@limper.gsa.gov>, Al James  <sastone@dfw.net> wrote:

>I recently installed FreeBSD on a PC with a 3C509 NIC.
> When I boot BSD, the messages come across
>saying that the card has been recognized and assigned to en0 or ec0

If FreeBSD is similar to NetBSD in this respect, the driver is ep0.
At any rate, you can find out exactly what it is by running `netstat
-i'.

>	IP address: 	159.142.74.56	(sasquax.gsa.gov)
>	Router address:	159.142.74.1	?
>	Subnet mask:	255.255.255.192
>	Network:	159.142		(gsa.gov)
>Could someone send (or post) the commands I should use in order to
>setup my system for communucation on the net? 

You need to set the link options in your card for the port you are
using. From the ep manual page (`man ep'):

     The ep device driver supports the 3c509 (ISA) and 3c579 (EISA) cards.
     Various models of these cards come with a different assortment of connec-
     tors:

     AUI/DIX               Standard 15 pin connector

     10Base2               BNC, also known as thin-net

     10BaseT               UTP, also known as twisted pair

     The default port to use is the BNC. To choose an alternate port, use the
     following flag combinations with ifconfig(8) or in your /etc/hostname.ep?
     file.

     -link0                Use the BNC port (default).

      link0 -link1         Use the AUI port.

      link0  link1         Use the UTP port.

So, assuming you're using the 10base-T port:

ifconfig ep0 inet 159.142.74.56 netmask 255.255.255.192 link0 link1
route add default 159.142.74.1

You may not need the second line if you're runing routed and RIP is
available on your network.

You can have this come up automatically when you boot multiuser by
having a file named /etc/hostname.ep0 with the following in it:

inet sasquax.gsa.gov 255.255.255.192 NONE link0 link1

Make sure that you've got this entry in your /etc/hosts file for
this to work:

159.142.74.56	sasquax.gsa.gov sasquax

I hope this helps.

cjs
-- 
Curt Sampson    curt@portal.ca
Internet Portal Services, Ltd.     Beside the willow'd river bank
Vancouver, BC   (604) 257-9400     Repose I, still and thinking...