Linux - NetworkingThis 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.
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.
I tried to setup a connection as below but face some problem (probably route table setting incorrect). Hope if anyone could shed the light...
Basically, I have a PC1 (.1) and PC2 (.130) connected via a PC router. PC router has 2 interfaces: wireless (.2) and ethernet (.129). PC1 connects to PC router via LAN cable/wireless interface, while PC2 connects to PC router via cable. This settings try to simulate 1 wireless connection along the path (and because PC2 is too old to support wireless interface, we need a PC router). These interfaces are all under same 172.16.130.x subnet.
I tried to check the settings at PC router by PING.
The problem is
(a) PING success from .1 to .129,
(b) PING fail from .129 to .1.
(c) PING success from .130 to .2
(d) PING fail from .2 to .130.
(e) PING fail from .1 to .130 (ICMP request from .1 reach .2 but does not forward to .129)
(f) PING fail from .130 to .1 (ICMP request from .130 reach .129 but does not forward to .2)
(g) PING success between adjacent interface (eg. .1 to .2 and vice versa, .129 to .130 and vice versa).
(h) PING fail between .129<>.2 using non loopback fail (expected since no conn btw 2 interface).
My question is why PING A -> B success, but PING B->A fail??
--------------------------------------------
Below are the settings of Ubuntu 9.04 at PC Router
--------------------------------------------
root@atdg-desktop:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.130.128 0.0.0.0 255.255.255.128 U 1 0 0 eth0
172.16.130.0 0.0.0.0 255.255.255.0 U 2 0 0 ra0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 172.16.130.2 0.0.0.0 UG 0 0 0 ra0
0.0.0.0 172.16.130.129 0.0.0.0 UG 0 0 0 eth0
PING fail from .1 to .130 >> ICMP request from .1 reach .2 but does not forward to .129
PING fail from .130 to .1 >> ICMP request from .130 reach .129 but does not forward to .2
How is your networking setup, you want a wireless bridge? Are your eth0 and Wireless bridged together? or are you trying to use it like a router? Does your wireless card support Master mode, needed to have an infrastructure AP, does the firmware/driver you are using for wireless support using the wireless card as a router? Have you considered an alternative of actually buying a hardware access point and just plugging it into an ethernet port on your router or into a switch?
Some wireless cards just won't relay requests not originating from them, I had this problem when I used virtualization on my old laptop, I had to use a proxy on the host for web browsing because the wireless wouldn't send the requests from my VM. Do you have a client connected via wireless and not plugged into the router or network physically? Run wireshark or iftop on that and see if you see the ping coming to it, if not your wireless card is not transmitting the data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.