Networking Forums

Networking Forums > Computer Networking > Linux Networking > bind ICMP to specific IP address

Reply
Thread Tools Display Modes

bind ICMP to specific IP address

 
 
Stuart Kendrick
Guest
Posts: n/a

 
      11-30-2003, 05:11 PM
hi,

i'd like to run a number of ICMP intensive scripts from a single box.
in my experience, this is problematic ... ICMP doesn't support ports
the way TCP and UDP do, so the IP stack doesn't know to which process
to return the ICMP Echo Reply ... so process A can receive a response
to a ping which process B emitted ... neither process enjoys this ...
nor does the operator.

typically, /usr/sbin/ping supports the "-I" parameter, which allows it
to bind to a specified IP address ... that way, i can configure the box
with multiple IP addresses, bind each process' /usr/sbin/ping instance
to a different IP address ... and avoid stomping on myself.

but fping doesn't support the "-I" parameter. and i really like a number
of fping's features.

argh.

ok, so i can rewrite fping in Perl ... the Net::Ping module ships with
example code. and Net::Ping supports a 'bind' parameter, which allows
lets me specify the source IP address for the ICMP packet. but then,
i have to run my scripts as root or at least as setuid root ... neither
of which thrills me.

Net::Ping::External doesn't require root access to run, as it uses the
OS's ping binary. But ... it doesn't yet support binding to different
IP addresses (presumably, the "-I" parameter varies enough between OSes
that this is hard to support).

i think i'm stuck. i think i need more hardware -- one box per
ping-intensive app.

does anyone know of way around this?

--sk

Stuart Kendrick
FHCRC
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAS Address Pool/Reservations and ICMP Hiebert, John D. Windows Networking 0 11-30-2007 07:39 PM
Is it possible, bind has done but the OS still respond with ICMP destination unreachable Bin Chen Linux Networking 3 03-29-2007 12:11 PM
Can not bind() on a specific port Rogier Mulder Linux Networking 1 10-06-2004 08:37 PM
Bind to specific access point by MAC address in XP Milo Wireless Internet 0 01-29-2004 11:08 PM
Can you Bind Terminal Service to a Specific Adapter Bill Diekmann Windows Networking 1 01-20-2004 05:23 PM



1 2 3 4 5 6 7 8 9 10 11