From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O9j4u-0000Ag-Up for garchives@archives.gentoo.org; Wed, 05 May 2010 18:12:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 352EBE09DD for ; Wed, 5 May 2010 18:12:12 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id CB4AEE0780 for ; Wed, 5 May 2010 17:38:56 +0000 (UTC) Received: by vws3 with SMTP id 3so226003vws.40 for ; Wed, 05 May 2010 10:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=gRpvQWD+vzNW9074SrXAsIZT2znevrNrL3OiCvzoopw=; b=UpQn0GVq3Tblvnv4wABLIb007I+ciOD8Vw1dz+/G8QH+YHKK7CijwI6aT2c5BdaOsF dU1vYehPEwuUaXi9WVgM7Ww6QsDa2iWmva6GSRSIRWCk8FyZizLnWioyqWcwL5LAS8WH WcpjwG4wJHKsOnonD5/IWARchzWNZ533nSBh0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b0Ligh2NlBTiu8WZh7LiTgoEWzlCHEBAd9+4IPSrC5+7Jszez80WkUMF6snJxsM4od mABB5uv+cj4gfGiR8ABSBf3GEkp4TAcX8iocSEFXK+IxJzZfcGHHWE7555E3lYwHspth cceRT+JJEs4EKY36GX/v+heEyxjGGJcBsLJKI= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.220.61.137 with SMTP id t9mr2127945vch.171.1273081136144; Wed, 05 May 2010 10:38:56 -0700 (PDT) Received: by 10.220.169.8 with HTTP; Wed, 5 May 2010 10:38:56 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 May 2010 01:38:56 +0800 Message-ID: Subject: [gentoo-user] Re: arping network profile issue From: Zhou Rui To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=e0cb4e887f19e3e5100485dc4c79 X-Archives-Salt: 75cd1ffa-968b-48de-adab-08c54d1ad7f9 X-Archives-Hash: 370efe36ba42e619607506a1f6d44aba --e0cb4e887f19e3e5100485dc4c79 Content-Type: text/plain; charset=UTF-8 Sorry it's a test profile, to avoid misunderstanding, post my profile here, and this file not working too. $cat /etc/conf.d/net # 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 :]!). dns_domain="vm" config_eth0=( "arping" ) gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114" ) config_192168001001=( "192.168.1.114/24" ) routes_192168001001=( "default via 192.168.1.1" ) config_192168001254=( "192.168.1.114/24" ) routes_192168001254=( "default via 192.168.1.254" ) dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) fallback_eth0=( "dhcp" ) dhcp_eth0="nodns" 2010/5/6 Zhou Rui > Hi folks, > I setup a network interface to switch in two different network with > different gateways using config_eth0=( "arping" ), and I can get gateway mac > when use arping2 command directly. > But the /etc/init.d/net.eth0 start always fails, can you help me to find > the issue out? > > $ cat /etc/conf.d/net > # 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 :]!). > > dns_domain="vm" > config_eth0=( "arping" ) > > gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114" ) > > #config_eth0=( "192.168.1.114/24" ) > #dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) > #routes_192168001001=( "default via 192.168.1.1" ) > > config_192168001254=( "192.168.1.114/24" ) > routes_192168001254=( "default via 192.168.1.254" ) > > dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) > > fallback_eth0=( "dhcp" ) > dhcp_eth0="nodns" > > $ sudo arping2 -0 -r -c 1 -i eth0 -S 192.168.1.114 192.168.1.254 > 00:1d:xx:xx:xx:xx > > Thanks for your help. > > -- > BR, > Zhou Rui > -- BR, Zhou Rui --e0cb4e887f19e3e5100485dc4c79 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry it's a test profile, to avoid misunderstanding, post my profile h= ere, and this file not working too.

$cat /etc/conf.d/net
=
# This blank configuration will automatically use DHCP for any ne= t.*
# scripts in /etc/init.d. =C2=A0To create a more complete configuratio= n,
# please review /etc/conf.d/net.example and save your configur= ation
# in /etc/conf.d/net (this file :]!).

<= div> dns_domain=3D"vm"
config_eth0=3D( "arping" )<= /div>

gateways_eth0=3D( "192.168.1.254,,192.168.1.1= 14 192.168.1.1,,192.168.1.114" )

config_19216= 8001001=3D( "192.168.1.114/24&= quot; )
routes_192168001001=3D( "default via 192.168.1.1" )

config_192168001254=3D( "192.168.1.114/24" )
routes_192168001254=3D( &quo= t;default via 192.168.1.254" )

dns_servers_eth0=3D( "8.8.8.8 8.8.4.4" )

fallback_eth0=3D( "dhcp" )
dhcp_et= h0=3D"nodns"

2010/5/6 Zhou Ru= i <ghoulr@gmail.co= m>
Hi folks,
I setup a network interface t= o switch in two different network with different gateways using config_eth0= =3D( "arping" ), and I can get gateway mac when use arping2 comma= nd directly.
But the /etc/init.d/net.eth0 start always fails, can you help me to fi= nd the issue out?

$ cat /etc/conf.d/net
# This blank confi= guration will automatically use DHCP for any net.*
# scripts in /= etc/init.d. =C2=A0To create a more complete configuration,
# plea= se review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

dns_dom= ain=3D"vm"
config_eth0=3D( "arping" )

gateways_eth0=3D( "192.168.1.254,,192.168.1.114 192.= 168.1.1,,192.168.1.114" )

#config_eth0=3D( "192.168.1.114/24" )
#dns_servers_e= th0=3D( "8.8.8.8 8.8.4.4" )
#routes_192168001001=3D( &q= uot;default via 192.168.1.1" )

config_192168001254=3D( "192.168.1.114/24" )
routes_= 192168001254=3D( "default via 192.168.1.254" )

dns_servers_eth0=3D( "8.8.8.8 8.8.4.4" )

fallback_eth0=3D( "dhcp" )
dhcp_eth= 0=3D"nodns"

$ sudo arping2 -0 -r -c 1 -i= eth0 -S 192.168.1.114 192.168.1.254
00:1d:xx:xx:xx:xx

Thanks for your help.

--
BR,
Zhou Rui



--
BR,
Zhou Rui
--e0cb4e887f19e3e5100485dc4c79--