I have two interfaces connected to the internet with cable modem access. I am trying to create routeing tables to direct traffic through the proper interface. I am trying to do "ip rule add from 208.180.95.18 lookup 1", but it gives me an error "RTNETLINK answer:Invalid argument". Can anyone tell me what that means?? All interfaces show up with IP's when I do "ip addr"
this is what I am trying to follow: By default, TCP/IP packets are routed by examining the destination IP address and checking for a route to the destination network in the routing table. The routing table can be viewed with the netstat -r command. If a route is found, the packet is sent to that network interface, otherwise the packet is sent to the default gateway. For most systems directly on the Internet, the default gateway is an ISP. In our case, this means that all outbound Internet connections go out of the DSL interface. This is not the desired behavior in an environment with redundant Internet connections. When you add a cable modem to the system, you don't want your cable modem connections to respond using your DSL connection. To solve this issue, we create multiple routing tables using the ip command. A routing table is selected based on the source IP address of the outbound packet. This is configured using the following commands: # Setup source IP routing rules for DSL ip rule add from 63.89.102.157 lookup 1 ip route add 10.0.0.0/24 via 10.0.0.1 table 1 ip route add 0/0 via 63.89.102.1 table 1 # Setup source IP routing rules for cable modem ip rule add from 65.3.17.133 lookup 2 ip route add 10.0.0.0/24 via 10.0.0.1 table 2 ip route add 0/0 via 65.3.17.1 table 2 If an outbound packet is from source address 63.89.102.157 (DSL), then it looks at Routing Table 1, which has two entries: > ip route list table 1 10.0.0.0/24 via 10.0.0.1 dev eth0 default via 63.89.102.1 dev eth1 Here is the address to the whole article: http://www.samag.com/documents/s=1824/sam0201h/0201h.htm I have already checked on the kernel options and all seem to be correct. Thanks, David _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
