1 |
Hi folks, |
2 |
I setup a network interface to switch in two different network with |
3 |
different gateways using config_eth0=( "arping" ), and I can get gateway mac |
4 |
when use arping2 command directly. |
5 |
But the /etc/init.d/net.eth0 start always fails, can you help me to find the |
6 |
issue out? |
7 |
|
8 |
$ cat /etc/conf.d/net |
9 |
# This blank configuration will automatically use DHCP for any net.* |
10 |
# scripts in /etc/init.d. To create a more complete configuration, |
11 |
# please review /etc/conf.d/net.example and save your configuration |
12 |
# in /etc/conf.d/net (this file :]!). |
13 |
|
14 |
dns_domain="vm" |
15 |
config_eth0=( "arping" ) |
16 |
|
17 |
gateways_eth0=( "192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114" ) |
18 |
|
19 |
#config_eth0=( "192.168.1.114/24" ) |
20 |
#dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) |
21 |
#routes_192168001001=( "default via 192.168.1.1" ) |
22 |
|
23 |
config_192168001254=( "192.168.1.114/24" ) |
24 |
routes_192168001254=( "default via 192.168.1.254" ) |
25 |
|
26 |
dns_servers_eth0=( "8.8.8.8 8.8.4.4" ) |
27 |
|
28 |
fallback_eth0=( "dhcp" ) |
29 |
dhcp_eth0="nodns" |
30 |
|
31 |
$ sudo arping2 -0 -r -c 1 -i eth0 -S 192.168.1.114 192.168.1.254 |
32 |
00:1d:xx:xx:xx:xx |
33 |
|
34 |
Thanks for your help. |
35 |
|
36 |
-- |
37 |
BR, |
38 |
Zhou Rui |