Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to determine next hop ip at Router?

Reply
Thread Tools Display Modes

how to determine next hop ip at Router?

 
 
cranium.2003@gmail.com
Guest
Posts: n/a

 
      05-07-2005, 01:57 PM
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???

 
Reply With Quote
 
 
 
 
soulimane.mammar@gmail.com
Guest
Posts: n/a

 
      05-08-2005, 11:26 AM
Hi
1) to check what is happening use tcpdump
2) for host a to send data to host b u have to add the default routes
or use the iproute2 tables to define diffrent paths for diffrent
traffic
Good Luck

 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      05-08-2005, 04:36 PM
On 7 May 2005, (E-Mail Removed) <(E-Mail Removed)> 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
 
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
Determine Credentials to Access Wireless Router Jonathan Wood Wireless Networks 7 09-16-2009 10:32 PM
how to determine the wwn name. Spin Windows Networking 4 09-19-2006 11:25 AM
How do I determine which eth i/f is which? delphinuscadmus@yahoo.com Linux Networking 3 03-26-2006 08:33 AM
How to determine if my NIC's are up? dkelly6@nospam.gmail.com Linux Networking 5 11-03-2005 07:45 AM
Puzzle: Determine router's IP address cdf Linux Networking 13 05-02-2005 05:13 AM



1 2 3 4 5 6 7 8 9 10 11