Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2002 19:04:06 -0500 (EST)
From:      FreeBSD Questions <fbsdq@daedalus.varidyne.com>
To:        stable@freebsd.org
Subject:   static routes broken in 4.6-PRE ?
Message-ID:  <200205170004.TAA25561@daedalus.varidyne.com>

next in thread | raw e-mail | index | archive | help
This line in rc.conf used to work in 4.5-STABLE:

static_routes="-net 192.168.1.0 10.1.1.1 -netmask 255.255.255.0"

Now 4.6-PRE gives these errors in /var/log/debug:

May 16 18:53:46 www /kernel: : 
May 16 18:53:46 www /kernel: Invalid argument
May 16 18:53:46 www /kernel: add net .168.1.0: Invalid argument
May 16 18:53:46 www /kernel: route: 
May 16 18:53:46 www /kernel: writing to routing socket
May 16 18:53:46 www /kernel: : 
May 16 18:53:46 www /kernel: Invalid argument
May 16 18:53:46 www /kernel: add net .1.1.1: Invalid argument
May 16 18:53:46 www /kernel: usage: route [-dnqtv] command [[modifiers] args]
May 16 18:53:46 www /kernel: route: 
May 16 18:53:46 www /kernel: writing to routing socket
May 16 18:53:46 www /kernel: : 
May 16 18:53:46 www /kernel: Invalid argument
May 16 18:53:46 www /kernel: add net .255.255.0: Invalid argument

If I run route manually with:
route add -net 192.168.1.0 10.1.1.1 -netmask 255.255.255.0

the route is added without error. Is something broken in rc.network?

Any help would be greatly appreciated?




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




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