Traffic shaper w/ network aliasing?
Does the shaper to work on ip aliases?I have 2 IP, say it, ip1 & ip2, they are in the same sub-network. ip1 is a physical NIC's IP address and ip2 is that NIC's ip-aliases. I use shaper to control the traffic over that 2 IPs. Now I have two network device, eth0(ip1) and shaper0(ip2). Since shaper can only control the outgoing packet. I need direct all outgoing packets with source ip1 to eth0, and all outgoing packets with source ip2 to shaper0.
I've tried to set the traffic shaper work as per the following example but not work.
Linux kernel 2.4.18.x
insmod -o shaper0 shaper
ifconfig eth0:4 192.168.0.4
shapecfg attach shaper0 eth0:4
shapecfg speed shaper0 6400
ifconfig shaper0 192.168.0.4
route add -host 192.168.0.4 shaper0
-