Jacob Teplitsky
2002-Oct-24 23:43 UTC
ip addr add 1.1.1.1/24 brd + dev eth3 scope link table my_table
I want to do something like this: ip addr add 1.1.1.1/24 brd + dev eth3 scope link table my_table so that 1. Direct route 1.1.1.1/24 should go to table my_table. 2. Address 1.1.1.1 should be recognizes as a local only for packets received on dev eth3. Any suggestions ? Thanks - Jacob _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Martin A. Brown
2002-Oct-28 05:40 UTC
Re: ip addr add 1.1.1.1/24 brd + dev eth3 scope link table my_table
Jacob, Could you use the following instead: # iptables -t nat -A PREROUTING -i eth3 -d 1.1.1.1/24 -j DNAT \> --to-destination ip.ad.dr.esIt circumvents the problem you are trying to avoid, I think. -Martin : I want to do something like this: : : ip addr add 1.1.1.1/24 brd + dev eth3 scope link table my_table : : so that : 1. Direct route 1.1.1.1/24 should go to table my_table. : 2. Address 1.1.1.1 should be recognizes as a local only for packets received on dev eth3. : : Any suggestions ? : Thanks : - Jacob : : : : : : _______________________________________________ : LARTC mailing list / LARTC@mailman.ds9a.nl : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ : -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/