1 |
On Wednesday 05 May 2010 18:38:56 Zhou Rui wrote: |
2 |
> Sorry it's a test profile, to avoid misunderstanding, post my profile here, |
3 |
> and this file not working too. |
4 |
> |
5 |
> $cat /etc/conf.d/net |
6 |
> # This blank configuration will automatically use DHCP for any net.* |
7 |
> # scripts in /etc/init.d. To create a more complete configuration, |
8 |
> # please review /etc/conf.d/net.example and save your configuration |
9 |
> # in /etc/conf.d/net (this file :]!). |
10 |
> |
11 |
> dns_domain="vm" |
12 |
> config_eth0=( "arping" ) |
13 |
> |
14 |
> gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114" ) |
15 |
|
16 |
Are you sure that your routers do not respond to the default source address |
17 |
0.0.0.0 arping request? Have you tried changing this to: |
18 |
|
19 |
gateways_eth0=( "192.168.1.254 192.168.1.1" ) |
20 |
|
21 |
|
22 |
> config_192168001001=( "192.168.1.114/24" ) |
23 |
> routes_192168001001=( "default via 192.168.1.1" ) |
24 |
> |
25 |
> config_192168001254=( "192.168.1.114/24" ) |
26 |
> routes_192168001254=( "default via 192.168.1.254" ) |
27 |
> |
28 |
> dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) |
29 |
> |
30 |
> fallback_eth0=( "dhcp" ) |
31 |
> dhcp_eth0="nodns" |
32 |
> |
33 |
> 2010/5/6 Zhou Rui <ghoulr@×××××.com> |
34 |
> |
35 |
> > Hi folks, |
36 |
> > I setup a network interface to switch in two different network with |
37 |
> > different gateways using config_eth0=( "arping" ), and I can get gateway |
38 |
> > mac when use arping2 command directly. |
39 |
> > But the /etc/init.d/net.eth0 start always fails, can you help me to find |
40 |
> > the issue out? |
41 |
> > |
42 |
> > $ cat /etc/conf.d/net |
43 |
> > # This blank configuration will automatically use DHCP for any net.* |
44 |
> > # scripts in /etc/init.d. To create a more complete configuration, |
45 |
> > # please review /etc/conf.d/net.example and save your configuration |
46 |
> > # in /etc/conf.d/net (this file :]!). |
47 |
> > |
48 |
> > dns_domain="vm" |
49 |
> > config_eth0=( "arping" ) |
50 |
> > |
51 |
> > gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114" |
52 |
> > ) |
53 |
> > |
54 |
> > #config_eth0=( "192.168.1.114/24" ) |
55 |
> > #dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) |
56 |
> > #routes_192168001001=( "default via 192.168.1.1" ) |
57 |
> > |
58 |
> > config_192168001254=( "192.168.1.114/24" ) |
59 |
> > routes_192168001254=( "default via 192.168.1.254" ) |
60 |
> > |
61 |
> > dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) |
62 |
> > |
63 |
> > fallback_eth0=( "dhcp" ) |
64 |
> > dhcp_eth0="nodns" |
65 |
> > |
66 |
> > $ sudo arping2 -0 -r -c 1 -i eth0 -S 192.168.1.114 192.168.1.254 |
67 |
> > 00:1d:xx:xx:xx:xx |
68 |
|
69 |
The option -0 negates the -S 192.168.1.114. Use one or the other. |
70 |
|
71 |
If it works with option -0 then use my suggested format for gateways_eth0= |
72 |
because you do not need to spoof the arping address. |
73 |
|
74 |
HTH. |
75 |
-- |
76 |
Regards, |
77 |
Mick |