* [gentoo-user] arping network profile issue
@ 2010-05-05 17:35 Zhou Rui
2010-05-05 17:38 ` [gentoo-user] " Zhou Rui
2010-05-07 11:30 ` [gentoo-user] " Adam
0 siblings, 2 replies; 7+ messages in thread
From: Zhou Rui @ 2010-05-05 17:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1678 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: arping network profile issue
2010-05-05 17:35 [gentoo-user] arping network profile issue Zhou Rui
@ 2010-05-05 17:38 ` Zhou Rui
2010-05-09 17:07 ` Mick
2010-05-07 11:30 ` [gentoo-user] " Adam
1 sibling, 1 reply; 7+ messages in thread
From: Zhou Rui @ 2010-05-05 17:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1987 bytes --]
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 <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
>
> Thanks for your help.
>
> --
> BR,
> Zhou Rui
>
--
BR,
Zhou Rui
[-- Attachment #2: Type: text/html, Size: 3248 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] arping network profile issue
2010-05-05 17:35 [gentoo-user] arping network profile issue Zhou Rui
2010-05-05 17:38 ` [gentoo-user] " Zhou Rui
@ 2010-05-07 11:30 ` Adam
2010-05-08 5:25 ` Zhou Rui
1 sibling, 1 reply; 7+ messages in thread
From: Adam @ 2010-05-07 11:30 UTC (permalink / raw
To: gentoo-user
On 05/06/10 03:35, Zhou Rui wrote:
> 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?
I cant understand what you're trying to achieve. IP will always do the
arp for you so just set up the IP level stuff and whatever you're trying
to do should work.
> dns_domain="vm"
> config_eth0=( "arping" )
AFAICT This means you want to try to find a free address in the
169.254.x.x auto self configuration range - is that what you want?
> gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114" )
As none of those addresses are local, they cant be used as a gateway for
a 169.254 address.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] arping network profile issue
2010-05-07 11:30 ` [gentoo-user] " Adam
@ 2010-05-08 5:25 ` Zhou Rui
2010-05-08 8:50 ` Adam
0 siblings, 1 reply; 7+ messages in thread
From: Zhou Rui @ 2010-05-08 5:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]
What I want is finding a gateway out with ARP, and then assign the correct
gateway/route table, stuff in the configuration can be found in
/etc/conf.d/net.example.
BTW, what's "IP level stuff" meaning? thanks.
2010/5/7 Adam <adam@jaftan.com.au>
> On 05/06/10 03:35, Zhou Rui wrote:
> > 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?
>
> I cant understand what you're trying to achieve. IP will always do the
> arp for you so just set up the IP level stuff and whatever you're trying
> to do should work.
>
> > dns_domain="vm"
> > config_eth0=( "arping" )
>
> AFAICT This means you want to try to find a free address in the
> 169.254.x.x auto self configuration range - is that what you want?
>
> > gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114"
> )
>
> As none of those addresses are local, they cant be used as a gateway for
> a 169.254 address.
>
>
--
BR,
Zhou Rui
[-- Attachment #2: Type: text/html, Size: 1622 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] arping network profile issue
2010-05-08 5:25 ` Zhou Rui
@ 2010-05-08 8:50 ` Adam
2010-05-09 2:43 ` Zhou Rui
0 siblings, 1 reply; 7+ messages in thread
From: Adam @ 2010-05-08 8:50 UTC (permalink / raw
To: gentoo-user
On 05/08/10 15:25, Zhou Rui wrote:
> What I want is finding a gateway out with ARP, and then assign the correct
> gateway/route table,
You cant discover a router with ARP. ARP finds the MAC address of a host
that's associated with a given IP address.
Ways of getting a ipv4 gateway are;
- manual configuration
- DHCP
- http://en.wikipedia.org/wiki/ICMP_Router_Discovery_Protocol
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] arping network profile issue
2010-05-08 8:50 ` Adam
@ 2010-05-09 2:43 ` Zhou Rui
0 siblings, 0 replies; 7+ messages in thread
From: Zhou Rui @ 2010-05-09 2:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 729 bytes --]
I found this in gentoo wiki, and the same configuration in
/etc/conf.d/net.example
http://en.gentoo-wiki.com/wiki/Network_profiles_with_arping
I guess, it works like, first you find a specific IP/MAX pair w/ ARP, then a
manual configuration according the IP/MAC.
2010/5/8 Adam <adam@jaftan.com.au>
> On 05/08/10 15:25, Zhou Rui wrote:
> > What I want is finding a gateway out with ARP, and then assign the
> correct
> > gateway/route table,
>
> You cant discover a router with ARP. ARP finds the MAC address of a host
> that's associated with a given IP address.
>
> Ways of getting a ipv4 gateway are;
> - manual configuration
> - DHCP
> - http://en.wikipedia.org/wiki/ICMP_Router_Discovery_Protocol
>
>
>
--
BR,
Zhou Rui
[-- Attachment #2: Type: text/html, Size: 1260 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: arping network profile issue
2010-05-05 17:38 ` [gentoo-user] " Zhou Rui
@ 2010-05-09 17:07 ` Mick
0 siblings, 0 replies; 7+ messages in thread
From: Mick @ 2010-05-09 17:07 UTC (permalink / raw
To: gentoo-user
[-- 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 --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-05-09 17:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox