So I've got my pogoplug setup with two Ethernet interfaces, one being the built in Ethernet adapter (eth0) for local traffic via samba and the second being a usb Ethernet adapter (eth1). Both of these connections have internet connectivity although I only want to use the internet connection from eth1. My ifconfig is as follows:
$this->bbcode_second_pass_code('', '
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.17 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::225:31ff:fe04:ac38 prefixlen 64 scopeid 0x20<link>
ether 00:25:31:04:ac:38 txqueuelen 1000 (Ethernet)
RX packets 3120736 bytes 4070890957 (3.7 GiB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 3021817 bytes 318674797 (303.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.9 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::2e0:4cff:fe53:4458 prefixlen 64 scopeid 0x20<link>
ether 00:e0:4c:53:44:58 txqueuelen 1000 (Ethernet)
RX packets 11998341 bytes 575006218 (50.3 MiB)
RX errors 307 dropped 167 overruns 68 frame 413
TX packets 8038076 bytes 607174756 (200.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
')
To accomplish internet access via eth1 I simply delete the gateway route for eth0:
$this->bbcode_second_pass_code('', 'route del default gw 192.168.0.1 dev eth0')
eth0 is also configured to be a static interface, this is my /etc/conf.d/network file:
$this->bbcode_second_pass_code('', '
interface=eth0
address=192.168.0.17
netmask=24
broadcast=192.168.0.255
')
as you can see I never even assign a gateway..
The issue I'm having is that this gateway route keeps getting added back to the route table and I don't know were that is happening since eth0 is a static route. Any help is greatly appreciated.