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 1OB9zf-0000JL-CJ for garchives@archives.gentoo.org; Sun, 09 May 2010 17:08:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 262E3E0794; Sun, 9 May 2010 17:08:05 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id DAD3FE0794 for ; Sun, 9 May 2010 17:08:04 +0000 (UTC) Received: by wwb13 with SMTP id 13so269812wwb.40 for ; Sun, 09 May 2010 10:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=tpoeQl3iyi/yjbQSuhJMwOoMZzEAMOmxFyF9yJt8laM=; b=W6Jv6DystHrbSsJl1CKZ9lDNpA+ZR9/mYByedQs+8ZpDZsIdC5ybHxUBMf/vLykhIE T0I/kce3K5qJeVvuOvAJ5d6aI+stYM5az5qEh6d/oF1FawW34P0zMi3wAbowwNfi0CTu uYMy1XbC+bPZRR8R92LQC/c/sCMx6YkTos34Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=b45qrWuk/LYdgqiI9kcI/1rMSo1ueFPvavKKd6nhpbP+6UaTpysF2VIlFpeyvCILP0 Lskzc+n/1Vwg8n587/N3c4qafxA74uia7C4GInzVb3rkFVoeROFiq0IIX7qcdJJmSKrA bSHKU+Pa5qrWWWC6i5GlvbSNi00EYGudT/3cY= Received: by 10.227.128.199 with SMTP id l7mr2689297wbs.210.1273424884257; Sun, 09 May 2010 10:08:04 -0700 (PDT) Received: from (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id x34sm16451003wbd.22.2010.05.09.10.08.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 May 2010 10:08:03 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: arping network profile issue Date: Sun, 9 May 2010 18:07:51 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.33-gentoo-r2; KDE/4.3.5; x86_64; ; ) References: In-Reply-To: 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 Content-Type: multipart/signed; boundary="nextPart1564756.7BYgob9V0T"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201005091808.04231.michaelkintzios@gmail.com> X-Archives-Salt: a71861f7-4e5f-41eb-af49-b79ca5ea0d95 X-Archives-Hash: fb54986ff5eb814d1aa49dca7f5f3bd2 --nextPart1564756.7BYgob9V0T Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Wednesday 05 May 2010 18:38:56 Zhou Rui wrote: > Sorry it's a test profile, to avoid misunderstanding, post my profile her= e, > and this file not working too. >=20 > $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 :]!). >=20 > dns_domain=3D"vm" > config_eth0=3D( "arping" ) >=20 > gateways_eth0=3D( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.11= 4" ) Are you sure that your routers do not respond to the default source address= =20 0.0.0.0 arping request? Have you tried changing this to: gateways_eth0=3D( "192.168.1.254 192.168.1.1" ) > config_192168001001=3D( "192.168.1.114/24" ) > routes_192168001001=3D( "default via 192.168.1.1" ) >=20 > config_192168001254=3D( "192.168.1.114/24" ) > routes_192168001254=3D( "default via 192.168.1.254" ) >=20 > dns_servers_eth0=3D( "8.8.8.8 8.8.4.4" ) >=20 > fallback_eth0=3D( "dhcp" ) > dhcp_eth0=3D"nodns" >=20 > 2010/5/6 Zhou Rui >=20 > > Hi folks, > > I setup a network interface to switch in two different network with > > different gateways using config_eth0=3D( "arping" ), and I can get gate= way > > 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=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_eth0=3D( "8.8.8.8 8.8.4.4" ) > > #routes_192168001001=3D( "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_eth0=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 The option -0 negates the -S 192.168.1.114. Use one or the other. If it works with option -0 then use my suggested format for gateways_eth0= =3D=20 because you do not need to spoof the arping address. HTH. =2D-=20 Regards, Mick --nextPart1564756.7BYgob9V0T Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEABECAAYFAkvm6/QACgkQVTDTR3kpaLbQPgCeMMXOeKI3Jg4IwHXmaav4azVF h6MAn2onFCRCSTZNkdK1B/RPikqiHFC8 =66hJ -----END PGP SIGNATURE----- --nextPart1564756.7BYgob9V0T--