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


Re: [gentoo-user] etc/conf.d/net format ?

2009-02-23 Thread Stroller


On 23 Feb 2009, at 13:14, Helmut Jarausch wrote:

...
So to fix this, I'd like to do some 'sleep' after /usr/bin/br2684ctl  
has

executed.

Where is the syntax
br2684ctl_nas0= ...

explained and how can I insert some 'sleep'?


In my /etc/conf.d/net I have:

preup() {
if [[ ${IFACE} == "br0" ]] ;
  then sleep 30 ;
fi
return 0
}

HTH,

Stroller.



Re: [gentoo-user] etc/conf.d/net format ?

2009-02-23 Thread Helmut Jarausch
On 23 Feb, Mike Kazantsev wrote:
> On Mon, 23 Feb 2009 18:31:18 +0500
> Mike Kazantsev  wrote:
> 
>> On Mon, 23 Feb 2009 14:14:28 +0100 (CET)
>> Helmut Jarausch  wrote:
>> 
>> > config_ppp0="ppp"  # Runs /lib/rcscripts/net/pppd.sh
>> > link_ppp0='nas0' # The name of the RFC2684 bridge interface
>> 
>> I've never used "link_*" syntax to specify dependencies, prehaps it has
>> been obsoleted and not working properly?
>> 
>> Try:
>> rc_need_ppp0="nas0"
>> 
>> Certainly works for me.
>> 
> 
> Sorry, I was too rash to send it away without looking at my actual net
> file. You should specify init.d script name in rc_need, not just some
> interface name, so it should look like this:
> 
> rc_need_ppp0="net.nas0"
> 

Thanks but removing the link_* didn't help. Furthermore it's suggested
in the current  net.example file

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] etc/conf.d/net format ?

2009-02-23 Thread Mike Kazantsev
On Mon, 23 Feb 2009 18:31:18 +0500
Mike Kazantsev  wrote:

> On Mon, 23 Feb 2009 14:14:28 +0100 (CET)
> Helmut Jarausch  wrote:
> 
> > config_ppp0="ppp"  # Runs /lib/rcscripts/net/pppd.sh
> > link_ppp0='nas0' # The name of the RFC2684 bridge interface
> 
> I've never used "link_*" syntax to specify dependencies, prehaps it has
> been obsoleted and not working properly?
> 
> Try:
> rc_need_ppp0="nas0"
> 
> Certainly works for me.
> 

Sorry, I was too rash to send it away without looking at my actual net
file. You should specify init.d script name in rc_need, not just some
interface name, so it should look like this:

rc_need_ppp0="net.nas0"

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] etc/conf.d/net format ?

2009-02-23 Thread Mike Kazantsev
On Mon, 23 Feb 2009 14:14:28 +0100 (CET)
Helmut Jarausch  wrote:

> config_ppp0="ppp"  # Runs /lib/rcscripts/net/pppd.sh
> link_ppp0='nas0' # The name of the RFC2684 bridge interface

I've never used "link_*" syntax to specify dependencies, prehaps it has
been obsoleted and not working properly?

Try:
rc_need_ppp0="nas0"

Certainly works for me.

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] /etc/conf.d/net postup help

2008-06-17 Thread Neil Bothwick
On Mon, 16 Jun 2008 16:44:10 -0700, Grant wrote:

> >> postup() {
> >>set -xv
> >>if [[ ${IFACE} == "ath0" ]] ; then
> >>iwconfig ath0 rate 2M
> >>fi
> >>return 0
> >> }  
> >
> > What is wrong, the syntax looks fine. Does running the iwconfig
> > manually after connection work?  
> 
> I can't test the computer that's having the issue right now, but it
> outputs some strange stuff like:
> 
> /a/t/h/0/

Try it without the set line, this is not running in a bash shell. If you
need information as the script runs, echo it to a file and tail that
file.


-- 
Neil Bothwick

"Bother," said Pooh, more from force of habit than anything else.


signature.asc
Description: PGP signature


Re: [gentoo-user] /etc/conf.d/net postup help

2008-06-16 Thread Grant
>> I've tried a lot of stuff but I can't seem to get the postup syntax
>> right:
>>
>> postup() {
>>set -xv
>>if [[ ${IFACE} == "ath0" ]] ; then
>>iwconfig ath0 rate 2M
>>fi
>>return 0
>> }
>
> What is wrong, the syntax looks fine. Does running the iwconfig manually
> after connection work?

I can't test the computer that's having the issue right now, but it
outputs some strange stuff like:

/a/t/h/0/

during boot and the rate isn't locked down.  Running the command
manually definitely works.  I can get more specific info on the output
tomorrow, but please let me know if anything pops into your head.

- Grant
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] /etc/conf.d/net postup help

2008-06-16 Thread Neil Bothwick
On Mon, 16 Jun 2008 12:02:33 -0700, Grant wrote:

> I've tried a lot of stuff but I can't seem to get the postup syntax
> right:
> 
> postup() {
>set -xv
>if [[ ${IFACE} == "ath0" ]] ; then
>iwconfig ath0 rate 2M
>fi
>return 0
> }

What is wrong, the syntax looks fine. Does running the iwconfig manually
after connection work?


-- 
Neil Bothwick

NOTICE:
  --  THE ELEVATORS WILL BE OUT OF ORDER TODAY  --
  (The nearest working elevators are in the building
   across the street.)


signature.asc
Description: PGP signature


Re: [gentoo-user] /etc/conf.d/net postup help

2008-06-16 Thread Iain Buchanan
On Mon, 2008-06-16 at 12:02 -0700, Grant wrote:
> I've tried a lot of stuff but I can't seem to get the postup syntax right:
> 
> postup() {
>set -xv
>if [[ ${IFACE} == "ath0" ]] ; then
>iwconfig ath0 rate 2M
>fi
>return 0
> }
> 
> Can anybody help with this?

looks fine to me.  What's happening, (or not)?  Any error messages, or
any output at all?  Maybe you're using iwconfig too soon (before
association), but I'm only geussing.  Full paths could also help.

HTH,
-- 
Iain Buchanan 

Real programmers don't comment their code.  It was hard to write, it
should be hard to understand.

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] /etc/conf.d/net woes with baselayout2

2008-04-24 Thread Alan McKinnon
On Thursday 24 April 2008, Neil Bothwick wrote:

> > [EMAIL PROTECTED] ~ $ egrep -v '^#|^$' /etc/conf.d/net
> > iface_eth0="dhcp"
> > iface_wlan0="dhcp"
>
> Those should be config_xxx="dhcp"
>
> > modules=( "iwconfig" )
>
> And this should now be modules="iwconfig", although I inadvertently
> left a couple of Bash arrays in mine and it still worked (and I think
> iwconfig is the default for wireless anyway).

Thanks Neil. I see now what happened - baselayout-2/openrc nuked my 
existing /etc/conf.d/net so I remade it, but used an old net.example 
for the syntax. Second time this has bitten me!


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] /etc/conf.d/net woes with baselayout2

2008-04-23 Thread Neil Bothwick
On Wed, 23 Apr 2008 23:38:30 +0200, Alan McKinnon wrote:

> Does baselayout-2 use /etc/conf.d/net? It seems not from this:

Yes, and with no changes needed here apart from the removal of Bash
arrays.

> [EMAIL PROTECTED] ~ $ sudo /etc/init.d/net.wlan0 restart
>  * Bringing up interface wlan0
>  *   Configuring wireless network for wlan0
>  *   Scanning for access points
>  * Found "tania" at 00:60:B3:30:8D:AB, managed, encrypted
>  * Found "belkin54g" at 00:30:BD:99:D3:8B, managed
>  *   Connecting to "tania" in managed mode (WEP enabled -
> open) ... [ ok ]
>  * wlan0 connected to SSID "tania" at **
>  * in managed mode (WEP enabled - open)
>  *   No configuration specified; defaulting to DHCP
>  *   dhcp ...
>  * Running
> dhcpcd ... [ ok ]
>  * received address
> 10.0.0.3/24 [ ok ]
> 
> Note the "no configuration specified". However:
> 
> [EMAIL PROTECTED] ~ $ egrep -v '^#|^$' /etc/conf.d/net
> iface_eth0="dhcp"
> iface_wlan0="dhcp"

Those should be config_xxx="dhcp"

> modules=( "iwconfig" )

And this should now be modules="iwconfig", although I inadvertently left
a couple of Bash arrays in mine and it still worked (and I think iwconfig
is the default for wireless anyway).

> Has the location of the net init scripts changed?

Not unless you count an earlier baselayout2 ebuild sometimes deleting 
/etc/conf.d/net when it shouldn't :(


-- 
Neil Bothwick

Programming just with goto's is like swatting flies with a sledgehammer.


signature.asc
Description: PGP signature


Re: [gentoo-user] /etc/conf.d/net

2006-08-21 Thread Alan Mckinnon
On Sun, 2006-08-20 at 01:52 -0400, Philip Webb wrote:
> 060819 David Corbin wrote:
> > I emerged a bunch of stuff this morning, and got this:
> > "Gentoo is moving toward common config file for all network interfaces.
> > I looked at /etc/conf.d/net.example & it's woefully unclear
> > how I port my /etc/init.d/net.ppp0 to the new file/format.
> 
> Yes, the dox are not as detailed as they sb.
> To repeat my explanation to another troubled user a few weeks ago :

Philip, 

Docs on /etc/conf.d/net are about as clear as mud from where I sit. The
last thing I need to figure out is what exactly is the difference
between config_eth0 and iface_eth0 entries?

config_eth0 simply does not work for me at all - if the net cable is not
plugged in, dhcp takes 60 seconds to time out.
But iface_eth0 realizes in less than a second that there is no network
cable and does the smart thing.

I once found a note in some other obscure doc that iface_eth0 seems to
be the syntax for ifconfig, while config_eth0 seems to be for iproute2.
Can anyone confirm or deny this?

alan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /etc/conf.d/net

2006-08-19 Thread Philip Webb
060819 David Corbin wrote:
> I emerged a bunch of stuff this morning, and got this:
> "Gentoo is moving toward common config file for all network interfaces.
> I looked at /etc/conf.d/net.example & it's woefully unclear
> how I port my /etc/init.d/net.ppp0 to the new file/format.

Yes, the dox are not as detailed as they sb.
To repeat my explanation to another troubled user a few weeks ago :

I needed  3  things to get it working :
(1) in  /etc/init.d , delete the old  net.ppp0  (or rename it neutrally)
& do 'ln -s net.lo net.ppp0' ;
(2) do 'rc-update del net.eth0 default' 'rc-update add net.ppp0 default'
(this is the bit which isn't adequately documented: anyone would think
that both are simply symlinks to  net.lo  so what's the difference ?
but in fact, it affects how Baselayout configures the connection);
(3) create a new  /etc/conf.d/net  following  net.example : mine is

  config_eth0=( "192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" )
  # We have to instruct ppp0 to actually use ppp
  config_ppp0=( "ppp" )
  # Each PPP interface requires an interface to use as a "Link"
  link_ppp0="eth0" # PPPoE requires an ethernet interface
  # Specify what pppd plugins you want to use:
  plugins_ppp0=( "pppoe" )
  # PPP requires at least a username.
  # It will use the password specified in /etc/ppp/*-secrets
  username_ppp0='[EMAIL PROTECTED]'
  pppd_ppp0=( "updetach" "defaultroute" )

I found the  2 items  in the last line were required by testing items.
You may need a bit of trial+error to get it right for your system+ISP.

If you really can't get it to work, you can go on using Rp-pppoe:
just omit/reverse steps (1-2) & restore your old  /etc/conf.d/net ;
there's a section in  net.example  confirming this.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /etc/conf.d/net

2006-08-19 Thread David Corbin
On Saturday 19 August 2006 13:09, Pablo Antonio wrote:
> Quick answer: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4

Well, I look there, and like the example file, there is nothing about ppp and 
where to put all the ppp options.  The closest thing is the ADSL, but it's 
not really helpful to me.

David
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /etc/conf.d/net

2006-08-19 Thread Pablo Antonio

Quick answer: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4
--
Pablo A.
http://www.pablo-a.com.ar/
--
gentoo-user@gentoo.org mailing list