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 <gho...@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