Results 1 to 1 of 1
Hi All,
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-05-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 4
RTNETLINK error while adding multiple default gateways per interface
Hi All,
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 -
Can anyone please point out to the problem and probable solution.Code: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 */
Thanks


Reply With Quote
