[gentoo-user] /etc/conf.d/net syntax under new baselayout?

2011-05-10 Thread Walter Dnes
  I tried to follow the instructions for the baselayout upgrade...
- good news - the system boots
- bad news - networking is totally broken
- really good news - I have a hot backup machine, which I'm sending
  this message from G

  DMESG does show the Via-Rhine card coming up, and I do not use modules
for anything.  I simply have a honking big kernel.

  Here's my /etc/conf.d/net.  How does the syntax look?


# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

# Actually /usr/share/doc/openrc-version/net.example is where to look
# for example setup.

config_eth0=
192.168.123.249/29 broadcast 192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255
routes_eth0=
default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0


  In case anyone is wondering...
- the default via 192.168.123.254 metric 2 allows a dialup connection
  to take priority, without me having to manually tear down eth0, and
  restart it after dialup finishes.  I don't use it that often, but when
  ADSL is down, it's nice to have a backup connection.
- The /29 route allows my main machine to talk to my other machine via
  eth0, even when a dialup session is in progress.
- The 169.254.x.y/16 stuff is for my network-enabled TV tuner box, which
  *INSISTS* on coming up with a zero-config address... it's not a
  bug, it's a feature so they say.

  File-attached is the last page of screen output from the boot process,
in case it'll help.


-- 
Walter Dnes waltd...@waltdnes.org
 * Wiping /tmp directory ...
 * Setting terminal encoding [ASCII] ...
 * Setting console font [lat1-14] ...
 * Setting hostname to i3 ...
 * Setting keyboard mode [ASCII] ...
 * Loading key mappings [us] ...
/etc/init.d/../conf.d/net: line 11: 192.168.123.249/29 broadcast 
192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255: No such file or directory
/etc/init.d/../conf.d/net: line 15: default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0: No such file or directory
 * net.lo: error loading /etc/init.d/../conf.d/net
 * ERROR: net.lo failed to start
/etc/init.d/../conf.d/net: line 11: 192.168.123.249/29 broadcast 
192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255: No such file or directory 
/etc/init.d/../conf.d/net:
line 15: default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0: No such file or directory
 * net.eth0: error loading /etc/init.d/../conf.d/net
 * ERROR: net.eth0 failed to start
 * Mounting misc binary format filesystem ...
 * Activating swap devices ...
 * Initializing random number generator ...
INIT: Entering runlevel: 3
 * Starting syslog-ng ...
 * Starting dcron ...
 * Starting gpm ...
 * Loading iptables state and starting firewall ...
/etc/init.d/../conf.d/net: line 11: 192.168.123.249/29 broadcast 
192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255: No such file or directory
/etc/init.d/../conf.d/net: line 15: default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0: No such file or directory
 * net.lo: error loading /etc/init.d/../conf.d/net
 * ERROR: net.lo failed to start
/etc/init.d/../conf.d/net: line 11: 192.168.123.249/29 broadcast 
192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255: No such file or directory
/etc/init.d/../conf.d/net: line 15: default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0: No such file or directory
 * net.eth0: error loading /etc/init.d/../conf.d/net
 * ERROR: net.eth0 failed to start
 * ERROR: cannot start netmount as net.lo would not start
 * Starting rsyncd ...
 * ERROR: cannot start sshd as net.lo would not start
 * Starting local



Re: [gentoo-user] /etc/conf.d/net syntax under new baselayout?

2011-05-10 Thread William Hubbs
Hi Walter,


On Tue, May 10, 2011 at 08:19:10PM -0400, Walter Dnes wrote:
 config_eth0=

The quote on the line below this should be moved up, so it looks like:

config_eth0=
192.168.123.249/29 broadcast 192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255
routes_eth0=

Same here:

routes_eth0=
default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0

Try that and write back if it doesn't work.

William



pgpUw2tYJwHdU.pgp
Description: PGP signature