Skip to contentSkip to conversation

ip addr add 1.1.1.1/24 brd + dev eth3 scope link table my_table

LARTC Jacob Teplitsky 2 participants 2 messages Oct 24, 2002 – Oct 28, 2002

lore
Share & tools
lore
#1 lore raw

Re: [LARTC] ip addr add 1.1.1.1/24 brd + dev eth3 scope link table

Jacob,

Could you use the following instead:

# iptables -t nat -A PREROUTING -i eth3 -d 1.1.1.1/24 -j DNAT \
Quoted 1 line

--to-destination ip.ad.dr.es

It 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 / [email protected]
: http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
:

Signature · 7 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/