Re: [gentoo-user] net.eth0

2005-02-07 Thread Bastian Balthazar Bux
as sayd from peter you need to add "sys-apps/baselayout ~x86" to 
/etc/portage/package.keywords, sorry people not noticed that.
after the
# emerge -av sys-apps/iproute2 sys-apps/baselayout
you will find /etc/conf.d/net.example that explain you all :)

ciao francesco
raptor ha scritto:
hmm.. that something new.. where i can see description 
of this new syntax ?!!

|[EMAIL PROTECTED] ha scritto:
|
|>hi,
|>
|>in /etc/conf.d/net I have in alias_eth0 :
|>around ~20 aliases
|>
|>alias_eth0="x.x.x.x .. y.y.72.0 y.y.73.0 y.y.74.0  x.x.x.x"
|>
|>it creates these interfaces with netmask 255.255.0.0 and as consequense it
|>inserst a route to y.0.0.0/8 instead of three routes to these 3 networks..
|>any solution ?
|>
|>  
|>
|I'm not sure to understund your question, so I simply post one net.eth0 
|config that has multiple aliases on multiple networks with multiple path ;)
|
|modules=( "iproute2" )
|
|ipaddr_eth0=(
|"192.168.1.100/24"
|"192.168.1.101/24"
|"192.168.1.102/24"
|
|"192.168.2.100/24"
|"192.168.2.101/24"
|"192.168.2.102/24"
|
|"192.168.3.100/24"
|"192.168.3.101/24"
|"192.168.3.102/24"
|)
|
|iproute_eth0=(   
|"to 192.168.21.0/24 via 192.168.2.1"
|"to 192.168.22.0/24 via 192.168.3.1"
|"default via 192.168.1.1"
|)
|
|
|you need to emerge sys-apps/iproute2 to make it work
|
 


--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] net.eth0

2005-02-05 Thread raptor
i have ~20 entires... and have to type alot until i get to the correct spot...
probably I should move these entires in the front..so that i can add specific 
masks only for them


|[EMAIL PROTECTED] wrote:
|> hi,
|> 
|> in /etc/conf.d/net I have in alias_eth0 :
|> around ~20 aliases
|> 
|> alias_eth0="x.x.x.x .. y.y.72.0 y.y.73.0 y.y.74.0  x.x.x.x"
|> 
|> it creates these interfaces with netmask 255.255.0.0 and as consequense it
|> inserst a route to y.0.0.0/8 instead of three routes to these 3 networks..
|> any solution ?
|
|You should also have these two lines in your /etc/conf.d/net
|
|#broadcast_eth0="192.168.0.255 192.168.0.255"
|#netmask_eth0="255.255.255.0 255.255.255.0"
|
|Uncomment and do them in the same order as your aliases and then your 
|networks will be setup correctly.
|
|kashani
|
|--
|gentoo-user@gentoo.org mailing list
|
|

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] net.eth0

2005-02-05 Thread raptor
hmm.. that something new.. where i can see description 
of this new syntax ?!!

|[EMAIL PROTECTED] ha scritto:
|
|>hi,
|>
|>in /etc/conf.d/net I have in alias_eth0 :
|>around ~20 aliases
|>
|>alias_eth0="x.x.x.x .. y.y.72.0 y.y.73.0 y.y.74.0  x.x.x.x"
|>
|>it creates these interfaces with netmask 255.255.0.0 and as consequense it
|>inserst a route to y.0.0.0/8 instead of three routes to these 3 networks..
|>any solution ?
|>
|>  
|>
|I'm not sure to understund your question, so I simply post one net.eth0 
|config that has multiple aliases on multiple networks with multiple path ;)
|
|modules=( "iproute2" )
|
|ipaddr_eth0=(
|"192.168.1.100/24"
|"192.168.1.101/24"
|"192.168.1.102/24"
|
|"192.168.2.100/24"
|"192.168.2.101/24"
|"192.168.2.102/24"
|
|"192.168.3.100/24"
|"192.168.3.101/24"
|"192.168.3.102/24"
|)
|
|iproute_eth0=(   
|"to 192.168.21.0/24 via 192.168.2.1"
|"to 192.168.22.0/24 via 192.168.3.1"
|"default via 192.168.1.1"
|)
|
|
|you need to emerge sys-apps/iproute2 to make it work
|
|--
|gentoo-user@gentoo.org mailing list
|
|

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] net.eth0

2005-02-04 Thread Kashani
[EMAIL PROTECTED] wrote:
hi,
in /etc/conf.d/net I have in alias_eth0 :
around ~20 aliases
alias_eth0="x.x.x.x .. y.y.72.0 y.y.73.0 y.y.74.0  x.x.x.x"
it creates these interfaces with netmask 255.255.0.0 and as consequense it
inserst a route to y.0.0.0/8 instead of three routes to these 3 networks..
any solution ?
You should also have these two lines in your /etc/conf.d/net
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
Uncomment and do them in the same order as your aliases and then your 
networks will be setup correctly.

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


Re: [gentoo-user] net.eth0

2005-02-04 Thread Bastian Balthazar Bux
[EMAIL PROTECTED] ha scritto:
hi,
in /etc/conf.d/net I have in alias_eth0 :
around ~20 aliases
alias_eth0="x.x.x.x .. y.y.72.0 y.y.73.0 y.y.74.0  x.x.x.x"
it creates these interfaces with netmask 255.255.0.0 and as consequense it
inserst a route to y.0.0.0/8 instead of three routes to these 3 networks..
any solution ?
 

I'm not sure to understund your question, so I simply post one net.eth0 
config that has multiple aliases on multiple networks with multiple path ;)

modules=( "iproute2" )
ipaddr_eth0=(
   "192.168.1.100/24"
   "192.168.1.101/24"
   "192.168.1.102/24"
   "192.168.2.100/24"
   "192.168.2.101/24"
   "192.168.2.102/24"
   "192.168.3.100/24"
   "192.168.3.101/24"
   "192.168.3.102/24"
)
iproute_eth0=(   
   "to 192.168.21.0/24 via 192.168.2.1"
   "to 192.168.22.0/24 via 192.168.3.1"
   "default via 192.168.1.1"
)

you need to emerge sys-apps/iproute2 to make it work
--
gentoo-user@gentoo.org mailing list


[gentoo-user] net.eth0

2005-02-04 Thread [EMAIL PROTECTED]
hi,

in /etc/conf.d/net I have in alias_eth0 :
around ~20 aliases

alias_eth0="x.x.x.x .. y.y.72.0 y.y.73.0 y.y.74.0  x.x.x.x"

it creates these interfaces with netmask 255.255.0.0 and as consequense it
inserst a route to y.0.0.0/8 instead of three routes to these 3 networks..
any solution ?


-
http://linuxtoday.com/news_story.php3?ltsn=2004-12-08-004-32-OS-BZ-DT-0005
snip> MS Office is popular in the same way as heart disease is the most popular 
way to die.

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: [normal] [gentoo-user] net.eth0 problems on boot

2003-11-25 Thread Marc Redmann
Hi Paul,

> Hi,
> 
> A few days ago my nic stopped working on boot, the problem is the
> /etc/init.d/net.eth0 script can't start-up. I get this error!
> 
> bash-2.05b# /etc/init.d/net.eth0 start
>  * Bringing eth0 up...
>  * eth0 is not plugged in or has no carrier
> signal[ !! ]

had the same problem yesterday, i guess you updated your baselayout to
the most recent version which is a little buggy.

maybe you can find a solution that fits your needs here:
http://bugs.gentoo.org/show_bug.cgi?id=33272

brgds,
Marc


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] net.eth0 problems on boot

2003-11-25 Thread Paul Kimberley
Thanks!

On Tue, 2003-11-25 at 08:53, mathieu wrote:
> Le Mardi, 25 Novembre 2003 16.44, Paul Kimberley a écrit :
> > Hi,
> >
> > A few days ago my nic stopped working on boot, the problem is the
> > /etc/init.d/net.eth0 script can't start-up. I get this error!
> >
> > bash-2.05b# /etc/init.d/net.eth0 start
> >  * Bringing eth0 up...
> >  * eth0 is not plugged in or has no carrier
> > signal[ !! ]
> >
> > I can manually run 'dhcpcd eth0' and then it works again!
> >
> > bash-2.05b# /etc/init.d/net.eth0 start
> >  * Bringing eth0
> > up...[ ok ]
> >
> > Anyone have any idea's where to start to debug this? I'm on a LAN so I
> > shouldn't be getting no carrier signals and the cable IS plugged in!
> 
> This is a known bug of baselayout:
> http://bugs.gentoo.org/show_bug.cgi?id=33272
> 
> the easiest fix until it's fixed is to manually edit net.eth0 and replace
> carrier_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/RUNNING/ { if ($1 == 
> IFACE) print "running" }')"
> with
> carrier_IFACE='running'
> 
> hth


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] net.eth0 problems on boot

2003-11-25 Thread Paul Kimberley
Sorry for replying to my own thread but, I've found where the problem
starts. 

Does anyone know where $carrier_IFACE gets set? is it set by the kernel?
I've done a grep of the etc dir, and nothing in there sets this flag...

# Check that the interface has a carrier
if [ "${carrier_IFACE}" = "running" ]
 then
/sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || {
 retval=$?
 eend ${retval} "Failed to bring
${IFACE} up"
 return ${retval}
 }
 else
   eend 1 "${IFACE} is not plugged in or has no
carrier signal"

> Hi,
> 
> A few days ago my nic stopped working on boot, the problem is the
> /etc/init.d/net.eth0 script can't start-up. I get this error!
> 
> bash-2.05b# /etc/init.d/net.eth0 start
>  * Bringing eth0 up...
>  * eth0 is not plugged in or has no carrier
> signal[ !! ]
> 
> I can manually run 'dhcpcd eth0' and then it works again!
> 
> bash-2.05b# /etc/init.d/net.eth0 start
>  * Bringing eth0
> up...[ ok ]
> 
> Anyone have any idea's where to start to debug this? I'm on a LAN so I
> shouldn't be getting no carrier signals and the cable IS plugged in!
> 
> Any help would be appreciated!
> 
> -Thanks


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] net.eth0 problems on boot

2003-11-25 Thread mathieu
Le Mardi, 25 Novembre 2003 16.44, Paul Kimberley a écrit :
> Hi,
>
> A few days ago my nic stopped working on boot, the problem is the
> /etc/init.d/net.eth0 script can't start-up. I get this error!
>
> bash-2.05b# /etc/init.d/net.eth0 start
>  * Bringing eth0 up...
>  * eth0 is not plugged in or has no carrier
> signal[ !! ]
>
> I can manually run 'dhcpcd eth0' and then it works again!
>
> bash-2.05b# /etc/init.d/net.eth0 start
>  * Bringing eth0
> up...[ ok ]
>
> Anyone have any idea's where to start to debug this? I'm on a LAN so I
> shouldn't be getting no carrier signals and the cable IS plugged in!

This is a known bug of baselayout:
http://bugs.gentoo.org/show_bug.cgi?id=33272

the easiest fix until it's fixed is to manually edit net.eth0 and replace
carrier_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/RUNNING/ { if ($1 == 
IFACE) print "running" }')"
with
carrier_IFACE='running'

hth

-- 
mathieu perrenoud

--
[EMAIL PROTECTED] mailing list



[gentoo-user] net.eth0 problems on boot

2003-11-25 Thread Paul Kimberley
Hi,

A few days ago my nic stopped working on boot, the problem is the
/etc/init.d/net.eth0 script can't start-up. I get this error!

bash-2.05b# /etc/init.d/net.eth0 start
 * Bringing eth0 up...
 * eth0 is not plugged in or has no carrier
signal[ !! ]

I can manually run 'dhcpcd eth0' and then it works again!

bash-2.05b# /etc/init.d/net.eth0 start
 * Bringing eth0
up...[ ok ]

Anyone have any idea's where to start to debug this? I'm on a LAN so I
shouldn't be getting no carrier signals and the cable IS plugged in!

Any help would be appreciated!

-Thanks




--
[EMAIL PROTECTED] mailing list