You are not logged in.

#1 2011-10-25 10:56:44

Agnelo de la Crotche
Member
Registered: 2011-10-25
Posts: 19

Error: `interface' is undefined in /etc/rc.conf

Hi.
I started to get this error (couple days ago, I guess) with the following setup:

/etc/rc.conf

interface=
address=
netmask=
broadcast=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
NETWORKS=(eth0 eth1)

/etc/network.d/eth0

CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth0'
IP='static'
ADDR='192.168.101.8'
GATEWAY='192.168.101.1'
DNS=('192.168.101.11' '208.67.222.222' '64.59.160.13')

/etc/netwotk.d/eth1.

CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth1'
IP='static'
ADDR='192.168.102.8'

Any idea how to get rid of this error message? The network is working though.

Offline

#2 2011-10-25 11:19:28

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Error: `interface' is undefined in /etc/rc.conf

Remove 'network' from DAEMONS array (if it's in there). You should only need net-profiles for netcfg.

Offline

#3 2011-10-25 11:47:49

Agnelo de la Crotche
Member
Registered: 2011-10-25
Posts: 19

Re: Error: `interface' is undefined in /etc/rc.conf

Raynman wrote:

Remove 'network' from DAEMONS array (if it's in there). You should only need net-profiles for netcfg.

Thanks! That was the problem. It also starts (significantly) faster now. :-)

Offline

#4 2011-10-25 17:48:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Error: `interface' is undefined in /etc/rc.conf

Please mark the thread as solved.

Offline

Board footer

Powered by FluxBB