From owner-freebsd-questions Wed Sep 20 22:00:24 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA22842 for questions-outgoing; Wed, 20 Sep 1995 22:00:24 -0700 Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id VAA22657 ; Wed, 20 Sep 1995 21:58:58 -0700 Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.6.12/8.6.12) id VAA01036; Wed, 20 Sep 1995 21:19:07 -0700 From: "Rodney W. Grimes" Message-Id: <199509210419.VAA01036@GndRsh.aac.dev.com> Subject: Re: network setup To: bmk@dtr.com Date: Wed, 20 Sep 1995 21:19:07 -0700 (PDT) Cc: nathan@netrail.net, freebsd-current@FreeBSD.org, freebsd-questions@FreeBSD.org In-Reply-To: <199509202349.QAA00400@everest> from "bmk@dtr.com" at Sep 20, 95 04:49:49 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2042 Sender: owner-questions@FreeBSD.org Precedence: bulk > > > > In netstart it says "Set up all the network interfaces, calling startup > > scripts if needed" Well I do need start info that will not go in > > sysconfig. How do I format the script what do I call the script? > > > This is what I need to do to get the network to run. > > > /usr/hdlc/utils/hdlccfg /usr/hdlc/utils/hdlc0.cfg > > /usr/hdlc/utils/hdlccfg /usr/hdlc/utils/hdlc1.cfg > > ifconfig ed0 205.215.0.1 netmask 255.255.255.0 > > ifconfig ed1 205.215.6.1 netmask 255.255.255.0 > > ifconfig ed1 alias 204.117.64.1 netmask 255.255.255.0 > > ifconfig eth0 144.228.27.38 144.228.27.37 netmask 255.255.255.252 > > ifconfig eth1 204.183.22.13 204.183.22.14 netmask 255.255.255.252 > > /usr/hdlc/utils/ifhdlc > > > And then everything works, I know how to make it work if I type all that > > in by hand, but I need it in the script but don't know where to put it. > > Create a script named /etc/netstart.{interface_name} - I'd guess that > you'd use /etc/netstart.hdlc?. > > You might have to hardcode it into netstart since you don't appear to be > using ifconfig on hdlc?. cat >/etc/start_if.eth0 #!/bin/sh /usr/hdlc/utils/hdlccfg /usr/hdlc/utils/hdlc0.cfg ^D cat >/etc/start_if.eth1 #!/bin/sh /usr/hdlc/utils/hdlccfg /usr/hdlc/utils/hdlc1.cfg In /etc/sysconfig change: network_interfaces="lo0" to: network_interfaces="ed0 ed1 eth0 eth1 lo0" and add: ifconfig_ed0="inet 205.215.0.1 netmask 255.255.255.0" ifconfig_ed1="inet 205.215.6.1 netmask 255.255.255.0" ifconfig_eth0="inet 144.228.27.38 144.228.27.37 netmask 255.255.255.252" ifconfig_eth1="inet 204.183.22.13 204.183.22.14 netmask 255.255.255.252" This still leaves the ed1 alias unhandled and the ifhdlc command not done. I don't recognize the hdlc stuff so I am not sure where that should really go, but this is the proper way to do most of what you want without modifying anything but /etc/sysconfig. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD