LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2008, 10:12 AM   #1
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Rep: Reputation: 15
Routing between wired and wireless networks


Hello!

I tried almost everything, but still no result. I have a problem routing between my wireless and wired network. Here is the topology of my network.

http://img221.imageshack.us/img221/4...kschemecw5.png

Info on my Linux router box
Code:
root@ubuntuRouter:~# ifconfig 
ath0      Link encap:Ethernet  HWaddr 00:19:E0:8A:F3:9D  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::219:e0ff:fe8a:f39d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1703 errors:0 dropped:0 overruns:0 frame:0
          TX packets:190 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:127771 (124.7 KiB)  TX bytes:19222 (18.7 KiB)

eth0      Link encap:Ethernet  HWaddr 00:10:5A:C4:43:75  
          inet addr:192.168.2.254  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::210:5aff:fec4:4375/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3321 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1263 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:315295 (307.9 KiB)  TX bytes:131601 (128.5 KiB)
          Interrupt:10 Base address:0x400 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:488 (488.0 b)  TX bytes:488 (488.0 b)

wifi0     Link encap:UNSPEC  HWaddr 00-19-E0-8A-F3-9D-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13996 errors:0 dropped:0 overruns:0 frame:696
          TX packets:357 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199 
          RX bytes:2020000 (1.9 MiB)  TX bytes:38763 (37.8 KiB)
          Interrupt:11 


root@ubuntuRouter:~# iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:"RostfreiNetwork"  Nickname:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:1D:68:F5:27:9D   
          Bit Rate:48 Mb/s   Tx-Power:16 dBm   Sensitivity=0/3  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:6159-6424-8D04-77EB-23F3-2510-4C07-9092   Security mode:restricted
          Power Management:off
          Link Quality=29/94  Signal level=-67 dBm  Noise level=-96 dBm
          Rx invalid nwid:303  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


root@ubuntuRouter:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 ath0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0


root@ubuntuRouter:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   


root@ubuntuRouter:~# cat /proc/sys/net/ipv4/ip_forward 
1


root@ubuntuRouter:~# arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.2.10             ether   00:15:99:24:94:A3   C                     eth0
192.168.1.66             ether   00:1D:E0:7F:8F:2B   C                     ath0
192.168.1.254            ether   00:1D:68:F5:27:9B   C                     ath0
192.168.2.5              ether   00:E0:18:ED:87:7D   C                     eth0
Info on my Linux desktop
Code:
root@ubuntu-desktop:~$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:e0:18:ed:87:7d  
          inet addr:192.168.2.5  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:18ff:feed:877d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9626 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21762 errors:0 dropped:0 overruns:0 carrier:0
          collisions:8 txqueuelen:1000 
          RX bytes:2208209 (2.1 MB)  TX bytes:1679797 (1.6 MB)
          Interrupt:20 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10299 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10299 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:805892 (787.0 KB)  TX bytes:805892 (787.0 KB)


root@ubuntu-desktop:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         192.168.2.254   0.0.0.0         UG    100    0        0 eth0


root@ubuntu-desktop:~# ping 192.168.2.10
PING 192.168.2.10 (192.168.2.10) 56(84) bytes of data.
64 bytes from 192.168.2.10: icmp_seq=1 ttl=255 time=2.77 ms
64 bytes from 192.168.2.10: icmp_seq=2 ttl=255 time=0.249 ms


root@ubuntu-desktop:~# ping 192.168.2.254
PING 192.168.2.254 (192.168.2.254) 56(84) bytes of data.
64 bytes from 192.168.2.254: icmp_seq=1 ttl=64 time=0.273 ms
64 bytes from 192.168.2.254: icmp_seq=2 ttl=64 time=0.226 ms


root@ubuntu-desktop:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.250 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.254 ms


root@ubuntu-desktop:~# ping 192.168.1.254
PING 192.168.1.254 (192.168.1.254) 56(84) bytes of data.

--- 192.168.1.254 ping statistics ---
24 packets transmitted, 0 received, 100% packet loss, time 23004ms


root@ubuntu-desktop:~# arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.2.254            ether   00:10:5A:C4:43:75   C                     eth0
192.168.2.10             ether   00:15:99:24:94:A3   C                     eth0
From Linux desktop I can ping both wired and wireless interfaces (eth0 and ath0) on the Linux router, but I can't ping the SpeedTouch wireless ADSL router address 192.168.1.254. The same goes from Vista laptop from which I can ping wireless interface on the Linux router (ath0), but I can't ping wired network (eth0). Traffic is somehow not wired between networks if the traffic is coming from outside of Linux router box. Why not? I have ip_forward enabled.

Best regards,

Last edited by Rostfrei; 10-17-2008 at 03:46 PM.
 
Old 10-17-2008, 04:34 PM   #2
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
Well I figured out what was wrong. When I added route on he Vista laptop

Code:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.1.254     192.168.1.66     26
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.1.0    255.255.255.0         On-link      192.168.1.66    281
     192.168.1.66  255.255.255.255         On-link      192.168.1.66    281
    192.168.1.255  255.255.255.255         On-link      192.168.1.66    281
      192.168.2.0    255.255.255.0      192.168.1.1     192.168.1.66     26
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link      192.168.1.66    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link      192.168.1.66    281
===========================================================================
the ping from the Vista laptop to the Linux desktop was successful and vice versa. I told Vista that packets for the network 192.168.2.0/24 should be routed to the different gateway and not default one which is gateway to the internet and not local network.

Ping from Linux desktop to the SpeedTouch router is still not successful because I have no way of configuring this kind of route on the embedded SpeedTouch 780i router.

I stumbled into the brick wall I guess :-(

Last edited by Rostfrei; 10-17-2008 at 04:52 PM.
 
Old 10-17-2008, 04:51 PM   #3
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
My first approach was connecting wired and wireless networks in the Linux router with the bridge and give all devices in the wired and wireless network IP addresses from the same network 192.168.1.0/24. This way all devices should be visible to each other in transparent network.

Unfortunately bridge functionality didn't work properly. I always had problem with one or another side of the bridge (eth0 or ath0). If I checked MAC addresses with

brctl showmacs <bridge_name>

I could see all the local (Linux router interfaces) and other MAC addresses on the network (wired and wireless, but if I checked MAC addresses with

arp -n


there was always an entry for wired or wireless network that was not resolved to the HW address, but there was an entry (Incomplete). I have no idea why. At first I though it was some kind of problem with wireless interface and a bridge functionality, but when I constructed the bridge twice, once I had a problem with HW addresses and (Incomplete) resolution on the wired interface (eth0) and the second time I had the same problem on the wireless interface (ath0). Did anybody else had similar problem when constructing bridge?

Best regards,
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect 2 wired networks via wireless rogerthehart Linux - Wireless Networking 8 03-21-2007 10:51 AM
Wireless Router to Connect 2+ Wired Networks fadeone Linux - Wireless Networking 1 03-23-2006 03:14 PM
Debian routing wireless to wired Child of Wonder Debian 3 02-10-2006 04:37 PM
Wireless-2-wired routing question dolvmin Linux - Wireless Networking 1 11-06-2005 11:31 AM
Routing between a wired ethernet (internet connection) and a wireless card (home net) ner0 Linux - Wireless Networking 8 11-29-2004 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration