Re: How to direct the ping through a specific IP
- From: guzzijason <jasonwtucker@xxxxxxxxx>
- Date: Tue, 2 Jun 2009 14:25:15 -0700 (PDT)
On Jun 1, 3:42 am, Michael Vilain <vil...@xxxxxxxxxxxxx> wrote:
In article
<c7d1d3c1-1b4e-4c70-bdb9-5d961ab9c...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
arju...@xxxxxxxxx wrote:
In a multi-homed Solaris server, how can I direct the ping (icmp echo)
through a specific NIC in the machine from where you sending the ping.
This machine has two IPs configured on two different NICs, but they
both are in same subnet
Thanks
Arjun
Ping doesn't work this way. Solaris will sound out the ping to the
destination based on the route table. If the interface you want doesn't
have a route to the host, Solaris won't send the packet through that
interface, I think even if you unplumb the other. Each interface should
have an entry in the route table showing what networks it routes to.
One will be the default route.
So to answer your question, you don't. Solaris sends the ICMP packets
through the interface that has the route to the network where the packet
should go.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored]
An option that might be worth checking out: traceroute gives you the
option to send ICMP echos, and also to specify a source address, such
as:
# traceroute -I -s src.ip dest.ip
man traceroute
__Jason
.
- Follow-Ups:
- Re: How to direct the ping through a specific IP
- From: arjunyk
- Re: How to direct the ping through a specific IP
- References:
- How to direct the ping through a specific IP
- From: arjunyk
- How to direct the ping through a specific IP
- Prev by Date: Re: Solaris initial install
- Next by Date: Re: The future of Solaris
- Previous by thread: Re: How to direct the ping through a specific IP
- Next by thread: Re: How to direct the ping through a specific IP
- Index(es):