Hi!
Is anyone out there who knows iproute2 quite well?
I can't route, so that ip packages are leaving the router on
different ip addresses (aliases on "external/internet" interface)
defined by source address.
e.g.
Internet .... eth0 .... 60.1.1.1 (c-class)
Internet2 ... eth0:0 .. 60.1.1.2 (c-class)
LAN ......... eth1 .... 192.3.7.0 (c-class)
I want to route packages which are coming from the router itself
through eth0/60.1.1.1 and packages which are coming from the LAN
(eth1/192.3.7.0) through eth0:0/60.1.1.2
my idea:
1.) traffic from router itself is no problem, handled by default gw
2.) create a rule "from-lan"
ip rule add from 192.3.7.0/24 table 10
3.) create a routing table nr. 10 which holds the routing info
what should i put there ???
i tried, but didn't work:
--------------
ip route add 0/0 via 60.1.1.2 table 10
--------------
ip route add 60.1.1.0/24 dev eth0 proto kernel scope link src
60.1.1.2 table 10
--------------
It seems, that iproute2 doesn't support alias interfaces??!!
THANK YOU FOR READING AND ANY USEFUL COMMENT!!!
Christoph.
Vienna/Austria/Europe
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]