The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
determine pid from ps -ef | grep something new2ss UNIX for Dummies Questions & Answers 5 02-03-2008 06:53 PM
Determine Solaris box network interface? akbar SUN Solaris 8 03-04-2007 11:35 AM
Determine LOM version? sysera SUN Solaris 2 10-21-2005 05:25 AM
Determine database used? RageMonkey UNIX for Dummies Questions & Answers 2 04-25-2005 02:21 AM
determine if a ethernet interface is up Esaia High Level Programming 2 01-03-2003 05:41 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2004
Registered User
 

Join Date: Nov 2004
Posts: 4
Stumble this Post!
How to determine the interface?

Given the interfaces on a firewall:

eth0 Link encap:Ethernet HWaddr 02:40:67:34:F5:47
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0

eth1 Link encap:Ethernet HWaddr 86:23:98:45:35:56
inet addr:123.45.240.69 Bcast:255.255.255.255 Mask:255.255.252.0

eth2 Link encap:Ethernet HWaddr 86:23:98:45:35:56
inet addr:123.45.240.70 Bcast:255.255.255.255 Mask:255.255.252.0

eth3 Link encap:Ethernet HWaddr 12:73:00:c4:47:56
inet addr:192.168.1.1 P-t-P:192.168.1.2 Mask:255.255.255.255

and the routing table:
Destination Gateway Genmask Iface
192.168.1.2 0.0.0.0 255.255.255.255 eth3
192.168.0.0 0.0.0.0 255.255.255.0 eth0
123.45.240.0 0.0.0.0 255.255.0.0 eth1
123.45.240.0 0.0.0.0 255.255.254.0 eth2
131.244.0.0 0.0.0.0 255.254.0.0 eth3
0.0.0.0 203.45.240.1 0.0.0.0 eth1



If I want to determine the interface which following packets:

SRC ADDR DST ADDR
192.168.0.3 123.45.241.30
240.18.10.3 131.244.12.23
10.4.5.6 10.4.5.7


what is the interface for these three pairs? and the most important thing is how to recognize it?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-04-2004
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,264
Stumble this Post!
Did you try route or netstat -r ?
Reply With Quote
  #3 (permalink)  
Old 11-04-2004
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,264
Stumble this Post!
Oh, I see you did

You could traceroute to the IP address and find the interface of your machine that way ....

BTW, the first one seems to be eth0 ....
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0