Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 1998 12:36:22 -0600 (CST)
From:      Dave Bodenstab <imdave@mcs.net>
To:        kline@thought.org
Cc:        questions@FreeBSD.ORG
Subject:   Re: insight needed on PLIP
Message-ID:  <199802171836.MAA11622@base486.home.org>

next in thread | raw e-mail | index | archive | help
> From: Gary Kline <kline@thought.org>
>
> 		Hm.  Can you be more specific here?  What exactly
> 		should I put in both /etc/sysconfig files that 
> 		would be a default routing?

This came up a month or two ago -- I got it working after finding
a message in the archives on freebsd.org.  The message refered to a
bug that prevented mountd (I think) from registering properly.  The
bug only affects lp0.

I'm running 2.0.5 and 2.2.5, and I think the bug is applicable to
both -- unless a fix has been applied in the meantime.  Another
gentleman asked the same question as you, so I posted the scripts
that I used for myself.  He replied with some changes to get
sysconfig, etc. to work properly -- it involved adding some sleeps,
but since I now have a couple of NE2000 cards, I didn't save his
changes.  You might try searching the archives.

Anyway, I've appended the scripts that I used on both machines when
I first began experimenting.  I ran them as root after booting each
machine.  At the very least, this will show you what needs to be
done.  The scripts allowed me to use either the lp0 or the ed0
interface, so there's more there than you need.  Good luck.

Dave Bodenstab
imdave@mcs.net

Excerpt from /etc/hosts:
  10.0.0.1	base486.home.org base486
  10.0.0.2	base586.home.org base586

machine #1 "base486", this machine runs a cacheing nameserver and ppp -alias
when dialed to my ISP:
---------
  #!/bin/sh
  driver=
  while [ "$driver" = "" ]
  do
    echo Choose an ethernet driver:
    echo '  lp0'
    echo '  ed0'
    echo -n '? '
    read driver

    case $driver in
    lp0|ed0)
      break
      ;;
    *)
      echo >&2 Unknown driver \"$driver\"
      driver=
      ;;
    esac
  done

  echo $driver

  run() {
    echo + $*
    $*
    }

  case $driver in
  lp0)
    run ifconfig lp0 inet 10.0.0.1 10.0.0.2
    sleep 1
    run ifconfig lp0 down
    sleep 1
    run mountd
    sleep 1
    run nfsd -u -t 2
    sleep 1
    run nfsiod -n 2
    sleep 3
    run ifconfig lp0 up
    ;;
  ed0)
    run ifconfig ed0 inet 10.0.0.1 netmask 255.255.255.0
    sleep 1
    run mountd
    run nfsd -u -t 2
    run nfsiod -n 2
    ;;
  esac

  run rwhod
---------

machine #2 "base586":
---------
  #!/bin/sh
  driver=
  while [ "$driver" = "" ]
  do
    echo Choose an ethernet driver:
    echo '  lp0'
    echo '  ed0'
    echo -n '? '
    read driver

    case $driver in
    lp0|ed0)
      break
      ;;
    *)
      echo >&2 Unknown driver \"$driver\"
      driver=
      ;;
    esac
  done

  echo $driver

  run() {
    echo + $*
    $*
    }

  case $driver in
  lp0)
    run ifconfig lp0 inet 10.0.0.2 10.0.0.1
    sleep 1
    run route add base586 localhost
    run route add default base486
    sleep 1
    run ifconfig lp0 down
    sleep 1
    run mountd
    sleep 1
    run nfsd -u -t 2
    sleep 1
    run nfsiod -n 4
    sleep 3
    run ifconfig lp0 up
    ;;
  ed0)
    run ifconfig ed0 inet 10.0.0.2 netmask 255.255.255.0
    sleep 1
    run route add default 10.0.0.1
    sleep 1
    run mountd
    run nfsd -u -t 2
    run nfsiod -n 4
    ;;
  esac

  run rwhod

  run mount -t nfs base486:/usr/local/include	/usr/local/include
  run mount -t nfs base486:/usr/local/info	/usr/local/info
  run mount -t nfs base486:/usr/local/man		/usr/local/man
  run mount -t nfs base486:/usr/local/src		/usr/local/src
  run mount -t nfs base486:/home/imdave		/home/imdave
---------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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