Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
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-01-2008, 08:14 AM
|
#1
|
LQ Newbie
Registered: Jun 2008
Posts: 15
Rep:
|
Ping wifi from ethernet
HI
I have two machine Host A and Host B. Host A has ethernet card and Host B has ethernet card and wifi card running in ad hoc mode. i want to ping from my ethernet card the Host B's wifi card. My ethernet cards are in same subnet while the wifi card on Host B is in different subnet. how can i ping this using iptables or netfilter hooks i am using fedora 7
Thanks in advance
|
|
|
09-01-2008, 11:46 AM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
You talk about two different subnets...please give more details on the network: e.g router(s), IP settings (static or DHCP), etc.
If you do ifconfig on a box to get the IP#, can you then ping that IP from another box?
|
|
|
09-02-2008, 04:55 AM
|
#3
|
LQ Newbie
Registered: Jun 2008
Posts: 15
Original Poster
Rep:
|
HI
Thanks for reply
I am giving static IPs
Host A
ethernet Ip
192.168.1.1
Host B
ethernet
192.168.1.2
wifi
192.168.2.1
I am not using any router. To perform ping across subnet i give Host own Ip as the default gateway
I have successfully able to ping two systems with different subnets on ethernet
I also has successfully ping the systems using wifi cards in different subnets in the same way
Now what i want to do is to ping from 192.168.1.1, the wifi (192.168.2.1)
i think i should use iptables but i dont know how
|
|
|
09-02-2008, 05:31 AM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
How are these machines connected? If there is no router, how do you connect 3 nodes and give them distinct IPs?
Please give complete details on the network--what is each computer connected to?, what provides the internet connection?, etc.
|
|
|
09-03-2008, 03:00 AM
|
#5
|
LQ Newbie
Registered: Jun 2008
Posts: 15
Original Poster
Rep:
|
I have two machines as under
Machine A
ethernet IP
192.168.1.1
Machine B
ethernet IP
192.168.1.2
WiFi IP
192.168.2.1
we are using class-less routing. I have these machines connected through a switch. I want to use HOST B as a special purpose gateway between LAN and WLAN users. So i want almost all traffic coming at ethernet card of Host B to be routed on the Wi-Fi card of Host B. and similarly all the traffic coming on Wi-Fi of host B to be routed on Ethernet card of Host B. I hope IPtables can do the job for me.
Secondly I want to make some changes before forwarding these packets from one network to other (say from LAN to WLAN). I thing netfilter hooks or something similar will be benificial for me. what commands should i use from IPtables and what events should i register to alter (temper the data packets) the traffic.
Last edited by tassadaque; 09-03-2008 at 03:11 AM.
|
|
|
09-04-2008, 12:08 PM
|
#6
|
Member
Registered: Aug 2007
Location: Fort Collins, Colorado
Distribution: Gentoo
Posts: 64
Rep:
|
- Make sure both NIC's are up (ifconfig eth0 up; ifconfig wlan0 up)
- Turn on IP Forwarding (sysctl net.ipv4.ip_forward=1)
Thats it. It should work 
|
|
|
All times are GMT -5. The time now is 01:02 PM.
|
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
|
|