Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2009
RTNETLINK error while adding multiple default gateways per interface
I am trying to set up policy based routing for multiple interfaces in the same subnet. Here is the scenario -
I have multiple interfaces on same subnet. I am using 'ip rules' to set up policy based routing with interface specific routing table. I am trying to add a default gw to these tables. 'Main' and 'Default' routing tables are empty. An attempt to add a default gw is resulting in following err:
RTNETLINK answers: No such process.
Routing tables looks something like this -
eth0: 192.168.1.1/16 eth1: 192.168.1.2/16 main table: empty eth0tbl: routing table for eth0 192.168.0.0/16 dev eth0 default via 192.168.1.25 dev eth0 ----> fails with above error eth1tbl: routing table for eth1 192.168.0.0/16 dev eth1 default via 192.168.1.25 dev eth1 ----> fails with above error #ip rule 0: from all lookup local 2: from 192.168.1.1 iif lo lookup eth0tbl 3: from all to 192.168.1.1 iif eth0 lookup eth0tbl 4: from 192.168.1.2 iif lo lookup eth1tbl 5: from all to 192.168.1.2 iif eth1 lookup eth1tbl 32766: from all lookup main ----------> /* empty */ 32767: from all lookup default ----------> /* empty */