From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: arping network profile issue
Date: Sun, 9 May 2010 18:07:51 +0100 [thread overview]
Message-ID: <201005091808.04231.michaelkintzios@gmail.com> (raw)
In-Reply-To: <y2z79dfdffe1005051038i2bfd49c3se80b716462b69ccb@mail.gmail.com>
[-- Attachment #1: Type: Text/Plain, Size: 2568 bytes --]
On Wednesday 05 May 2010 18:38:56 Zhou Rui wrote:
> 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" )
Are you sure that your routers do not respond to the default source address
0.0.0.0 arping request? Have you tried changing this to:
gateways_eth0=( "192.168.1.254 192.168.1.1" )
> 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 <ghoulr@gmail.com>
>
> > 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
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=
because you do not need to spoof the arping address.
HTH.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-05-09 17:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 17:35 [gentoo-user] arping network profile issue Zhou Rui
2010-05-05 17:38 ` [gentoo-user] " Zhou Rui
2010-05-09 17:07 ` Mick [this message]
2010-05-07 11:30 ` [gentoo-user] " Adam
2010-05-08 5:25 ` Zhou Rui
2010-05-08 8:50 ` Adam
2010-05-09 2:43 ` Zhou Rui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201005091808.04231.michaelkintzios@gmail.com \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox