Re: how to determine next hop ip at Router?

From: David Efflandt (efflandt_at_xnet.com)
Date: 05/08/05


Date: Sun, 8 May 2005 16:36:09 +0000 (UTC)

On 7 May 2005, cranium.2003@gmail.com <cranium.2003@gmail.com> wrote:
> hello,
> I have setup a network with 4pcs as
> HostA
> eth0=> 192.168.1.100
>
> Router1
> eth0=>10.1.1.1
> eth1=>192.168.1.1
>
> Router2
> eth0=>10.1.1.100
> eth1=>172.16.1.1
>
> HostB
> eth0=>172.16.1.100
>
> And set Router1 and Router2 as packet forwarder(Router). Now what i
> want is when i send a packet from HostA to HostB packet is still sent
> as src ip=192.168.1.100 and dest ip=172.16.1.100 its ok but how can i
> check at Router1 that packet is Direct Delivery or Indirect Delivery?
> What i want that i should get information at Router1 that whaterver
> HostA sends a packet with dest ip 172.16.1.100 i should get that next
> ip to which packet is going to be forwarded. In here i want to get
> information
> that though dest ip is 172.16.1.100 the next ip is 10.1.1.100?
> How to get that info???

If all routing is correct, and HostB is not behind NAT or masquerade, and
nothing else blocks traceroute responses, then from HostA do:

/usr/sbin/traceroute 172.16.1.100



Relevant Pages

  • how to determine next hop ip at Router?
    ... And set Router1 and Router2 as packet forwarder. ... want is when i send a packet from HostA to HostB packet is still sent ... HostA sends a packet with dest ip 172.16.1.100 i should get that next ...
    (comp.os.linux.networking)
  • arp problem in pinging host
    ... I have pc hostA with 192.168.1.100 connected to pc R1 with ... unable to receive reply packet from R1. ... But if i ping from R1 to hosta ... both Linux machines shows that when i did arp -a on hosta and found ...
    (comp.os.linux.networking)
  • Re: anti-spam measures
    ... automatic encryption, compression, digital signing. ... > of existing technology, to help fix some of the mess: ... hostb has an MX record and hostb does not. ... If both hosta and hostb have MX records they are advertising ...
    (comp.lang.java.programmer)
  • Re: NFS re-export
    ... >>re-exporting to hostB. ... If hostB does not have permissions to the ... it does now through hostA. ... login permissions so that only admins get login. ...
    (comp.protocols.nfs)
  • Re: [SLE] X gurus: Xlib:connection refused, invalid magic cookie
    ... but maybe it isn't neccesary or right to tell the remote session ... hostB to allow connection from the next remote hostC, ... displayed on my local X display on hostA? ... As mentioned in my first mail, hostA is set up like a X terminal to ...
    (SuSE)