Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-07-2005, 05:46 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Location: pune(India)
Posts: 8
Rep:
|
what a router does when it recieves a packet from a different network
hello
every one . here im facing a problem . i was trying to fetch the IP address of any host within a network , so that i can get a hold of the network id of that network . this is bcoz i m in a different network the host and i want to enter into that network.
for this to be achive , what i did was , i formed a packet specifying the source IP and MAC same as that of mine and the destination MAC to be the MAC of the ACCESS POINT of the desired network(i.e, in which i want to enter ).but i specified the destination's IP as 0.0.0.0 .
as a result what is happening , i m able to send the packets but im not recieving any reply from any one of the desired network in which the ACCESS POINT was , not even ARP request is recived.
why is happening,could nyone plz help me out of this.according to me some host in that networking , in which ACCESS POINT was ,is discarding the packet .why is it so? could nyone plz suggest me ny way so that i can be able to achive my goals, i.e get the IP address fo the ACCESS POINT or any host in the network same as the ACCESS POINT.
thank you all in advance , plz reply me ,i m egarly waiting for some response .
|
|
|
09-07-2005, 07:38 AM
|
#2
|
Member
Registered: Oct 2003
Posts: 568
Rep:
|
You cannot do what you are trying to do, the way that you are trying to do it.
The IP 0.0.0.0 will be dropped as unroutable.
You also, should not specify the MAC of the access point, as this process will be taken care of by the router, and proxy arp.
Have you tried sniffing packets?
|
|
|
09-08-2005, 12:57 AM
|
#3
|
LQ Newbie
Registered: Aug 2005
Location: pune(India)
Posts: 8
Original Poster
Rep:
|
first of all thanks a lot for the suggestion. but still i m not clear with one thing . as in my situation im in some network , say A , now how can i sniff a packet which is comming form some other nework say B to a netwrok say C. according to my idea im not authenticated to sniff such a packet , even as much as i know Etheral (a packet sniffer)does'nt sniffs such packets.
thanks once again for the suggestion n plz reply me back . thank u in advance .
|
|
|
09-09-2005, 07:16 PM
|
#4
|
Member
Registered: Oct 2003
Posts: 568
Rep:
|
You cannot sniff the packets of a network on whose collision domain you do not reside. There is no way for you to sniff the packets of a remote network unless you have an agent installed to a machine that is connected to that segment. This could be done with a sniffer, or a program installed to that machine that could forward the packets to you. Such a program may exist, however, I am not aware of it. It would probably be easier to code it yourself (using something like perl!  ).
|
|
|
All times are GMT -5. The time now is 01:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|