From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] iproute2 ping question
Date: Thu, 30 Jun 2005 02:11:03 +0000 [thread overview]
Message-ID: <42C354B7.91D84882@iswest.com> (raw)
In-Reply-To: <42C32CB7.6020505@theorb.net>
lartc user wrote:
>
> Hi List,
> Would somebody please explain how to use ip to attach the addresses to
> that interface and have it respond to them?
I use ProxyARP because it is the only thing that made sense to me. In
"iptables speak", the external interface receives all packets destined for my
/29 network but it puts into INPUT only those with the IP I assign to the
NIC. The rest go to the FORWARD chain and thus on to 4 "internal" machines
that have external IPs. Two of those "internal" machines have 2 external
IPs. I do that like this:
ifconfig eth1 IPAddr1 broadcast BcastIP1 netmask 255.255.255.248
ifconfig eth1:0 IPAddr2 broadcast BcastIP2 netmask 255.255.255.248
ip route add GatewayIP2/32 dev eth1 src IPAddr2
On the machine doing ProxyARP:
ip link set eth1 up
ip addr flush dev eth1
ip addr add dev eth1 local 1.1.1.2/32 brd 1.1.1.255
ip route add GatewayIP/32 dev eth1 src 1.1.1.2
You can see my scripts at http://yesican.chsoft.biz/lartc and you can get more
from ftp://andthatsjazz.org/pub/lartc
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2005-06-30 2:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-29 23:20 [LARTC] iproute2 ping question lartc user
2005-06-30 2:11 ` gypsy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42C354B7.91D84882@iswest.com \
--to=gypsy@iswest.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.