Commit Graph

73 Commits

Author SHA1 Message Date
itojun 15f0d67b67 improve comments about /etc/ifconfig.xxN, /etc/ifaliases, $ifaliases_xxN. 2000-02-11 08:09:56 +00:00
itojun 7a0d226970 ip6forwarding -> ip6mode change (somehow i forgot to commit...)
PR: 9375
2000-02-09 16:24:03 +00:00
itojun 64170fdeab remove (slightly) bogus comment line about IPv6 config. 2000-02-05 17:52:06 +00:00
itojun e9056d34cb change IPv6 configuration syntax to avoid ambiguity.
ip6mode=host: IPv6 host
ip6mode=autohost: IPv6 host, with autoconfig
ip6mode=router: IPv6 router

backward compatibility to "ip6forwading" is provided.
2000-02-05 17:02:42 +00:00
explorer 1eea48680e use 'route -n flush' not 'route flush' otherwise we might spend all our time
trying to print hostnames for things we are just flushing anyway.
2000-01-26 07:01:53 +00:00
itojun f6c95d891c no need to mount /usr just for sysctl, it is in /sbin now. 2000-01-17 02:37:59 +00:00
itojun ae444c9104 flip "if" order in IPv6 initialization, avoid calling /bin/test.
From: soda
1999-12-20 15:51:14 +00:00
itojun c7a34c1de0 check for IPv6 kernel by exit status of "ifconfig lo0 inet6".
now IPv6 portion of netstart does not require /usr mount, it will mount it
as necessary (like pppd configuration do).

thanks goes to christos for the tip.
1999-12-20 15:12:23 +00:00
itojun 2dded70ce5 avoid transmitting invalid IPv6 packets out to the wire. 1999-12-09 14:18:07 +00:00
itojun c683c60c73 recommend use of multi-line /etc/ifconfig.xxN than /etc/ifaliases, or
$ifaliases_xxN in /etc/rc.conf.
(no behavior change in /etc/netstart, comments only)

see recent tech-userlevel for discussions.
1999-11-29 01:40:33 +00:00
erh 145c0fee52 Ignore blank lines in ifconfig.* files. 1999-11-08 09:29:24 +00:00
itojun 8a0d5201d1 use sysctl -n to get numeric result, not awk. 1999-09-06 18:52:33 +00:00
itojun 02972f5985 add sanity check on rtadvd invocation (allowed on IPv6 routers only).
add rc.conf entry for rtsold.
1999-09-03 13:40:15 +00:00
itojun a7e88d2896 hide sysctl error messages to stderr (on checking IPv6 config values) 1999-07-04 12:51:30 +00:00
itojun 1f8a1d54df remove echo statement (was mostly for debugging). 1999-07-04 05:20:52 +00:00
itojun 7dcdb97971 remove unnecessary sleep (for DAD wait) in IPv6 configuration. 1999-07-03 03:40:52 +00:00
itojun 94e64335b4 add IPv6 configuration (ip6forwarding, rtsol, route6d and rtadvd).
Right now netsetart does not bother you even if you do not have
"options INET6" in the kernel.
1999-07-03 03:29:29 +00:00
christos 364d5a1432 Correct the dhclient startup to follow the standard indentation style 1999-05-28 21:01:42 +00:00
mellon 61b6b3bfec - Support dhclient and dhclient_flags rc.conf variables.
- Start dhcp client if dhclient==YES.
1999-03-24 19:03:10 +00:00
abs 33403acaba If ppp_peers is set, ensure /usr is mounted since pppd is in /usr.
(Modeled on rc.lkm setup)
1999-03-02 23:10:17 +00:00
abs a0a84e0575 Cannot use 'logger' as /usr is normally not mounted here. 1998-11-25 03:54:27 +00:00
fair db9db0284d more clearly document that "domainname" is about NIS/YP, not Internet, per PR#5442 1998-05-11 18:59:23 +00:00
lukem 8f59ce8e35 include rc.subr and use appropriately 1998-01-26 12:02:43 +00:00
veego 16cc8254d4 Move ipnat from /etc/netstart to /etc/rc after /usr is mounted. 1998-01-24 19:12:54 +00:00
christos 0a66272517 PR/3638: David Brownlee: Add /etc/ipnat.conf functionality. 1997-12-20 20:11:53 +00:00
mrg dae7a8ed1d - remove additional `adding interface aliases:' message.
- add `ppp_peers' support, which will run `pppd call <peer>' for each
  peer listed in the ppp_peers file that also has a /etc/ppp/peers/<peer>
  configuration file.
1997-11-17 17:45:28 +00:00
lukem 332ce4e67a highlight that a configured lo0 is necessary for sane network operation 1997-09-26 07:44:07 +00:00
mikel 8806d2a16f update $net_interfaces comment to reference $auto_ifconfig 1997-09-08 02:43:26 +00:00
mycroft be208d150c Hard-code the loopback address; it never changes, and we do *not* want to be
doing name lookups here (by default, at least).
1997-09-07 09:47:31 +00:00
veego 61cf6ecccc s/rc.func/rc.subr/ 1997-08-29 10:09:38 +00:00
cjs c3b0e18db8 Split rc.conf variables for starting programs into two: an on/off
switch and a set of flags. Get rid of DEFAULT flags entirely. Print
warnings if on/off switches are not set, or are set incorrectly.
Add a shell function to simplify this on/off switch testing.
1997-08-29 02:24:04 +00:00
mycroft 39709ef236 Don't require the host name to be set here. 1997-08-28 18:18:17 +00:00
lukem edbafa0300 4.4BSD has the ability to automagially add a route to localhost from
an interface to first time its address is referenced.  Therefore:
* configure lo0 before all other interfaces (rather than afterwards).
* don't explicitly add a route from `hostname` to localhost
1997-08-04 06:09:49 +00:00
phil 779c94c7af Allow routes to be flushed in netstart (rc.conf option, default YES).
PR 3228.
1997-07-22 18:41:08 +00:00
cjs 4112a161ec Back out last commit; bug was fixed in 1.37, but differently. 1997-05-22 21:41:09 +00:00
cjs ab82fdc6b5 The interface setup loop was adding every interface in `ifconfig -l`
to $configured_interfaces because it never checked to see if if it
actually configured that interface. For this reason it was setting
$configured_lo0 as well, so that never got configured, causing all
sorts of problems.
1997-05-22 21:29:49 +00:00
lukem c7acdd0732 Change interface config test so that the loop is always continued
if the interface wasn't configured, so that $configured_lo0 and
$configured_interfaces won't get incorrectly set if $net_interfaces ==
DEFAULT. From enami tsugutomo <enami@ba2.so-net.or.jp> in [misc/3635]
1997-05-17 14:12:24 +00:00
lukem 1b063db228 wrap $configured_lo0 in quotes, so that it doesn't barf if it's not set.
noticed by Thorsten Frueauf <frueauf@ira.uka.de> in [misc/3620]
1997-05-15 02:09:27 +00:00
lukem c20c8f0d8d fix up minor typos in comments 1997-05-12 23:40:50 +00:00
lukem 1775d86183 * add support for $hostname, $domainname, $defaultroute and $ifaliases_XXX
* only configure lo0 if not configured by the "configure interface" loop
1997-05-12 11:26:10 +00:00
scottr a35572dc38 Source rc.conf to pick up network-related configuration variables. 1997-04-29 04:55:05 +00:00
perry 680e326705 Change the way interfaces are configured on startup.
We no longer do /etc/hostname.* files, we do /etc/ifconfig.* files
instead, which contain lines each of which is fed to
ifconfig in turn. A new variable, net_interfaces, controls which
interfaces get brought up, by default, ifconfig -l is used to find a list.
1997-04-01 19:36:17 +00:00
veego 640697a2be Flush old filter rules and enable ipf again after the fix for
src/sys/netinet/ip_fil.c revision1.7
1997-03-30 19:08:14 +00:00
mycroft 40202c2514 Minor cleanup. 1997-03-10 09:34:59 +00:00
mikel ef538c3176 cleanup Lite-1 merge 1997-02-15 10:02:07 +00:00
mrg b4891ddaae don't need -E to ipf. 1997-01-28 06:33:36 +00:00
mrg 3b98afb4c5 move start-time configuration from netstart, rc, rc.local into
the new /etc/rc.conf.  this also includes the following changes:

	netstart:  ifaliases now includes a netmask, to ensure
		   aliases work.

	rc/rc.local:  make _everything_ based on configuration
	in rc.conf.  also move things around such that DNS and
	YP are started early enough that other daemons needing
	their services also exist.  move ldconfig from rc.local
	here, and also make it use /etc/ld.so.conf if it exists.
	run /etc/rc.lkm if it exists, a boot time.
1997-01-05 12:01:54 +00:00
mrg c82951e68c add inetd_flags, mostly from <jbernard@tater.Mines.EDU> in pr#2987 1996-12-04 12:55:33 +00:00
mrg b0119cdb4c add dhcpd startup; disabled by default 1996-10-03 07:11:35 +00:00
thorpej 2dfaa56a79 Change how the YP daemons are started. Previously, ypbind was always
started if the directory /var/yp exists.  Now, ypbind, ypserv, and
rpc.yppasswdd are started like other daemons; there are flags variables
for these programs.  To disable them, set the variables to "NO", otherwise,
their contents are passed as flags.
1996-08-09 10:29:44 +00:00