1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomato firmware subnetwork problems

Discussion in 'Tomato Firmware' started by yoda230, May 28, 2009.

  1. yoda230

    yoda230 LI Guru Member

    I'm trying to get to the bottom of a network problem I am having. Here is how I would like my network to be set up:

    Internet ---ADSL modem (192.168.1.1) ---- (192.168.1.3) Tomato Wireless router (192.168.0.1) ---- wlan0 (192.168.0.8) ubuntu box eth0 (192.168.2.1) ---- xbox (192.168.2.2)

    wlan0: inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
    eth0: inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
    xbox: inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0

    I have added an additional route to the tomato router so that it can access the 192.168.2 network.

    For some reason I cannot get the tomato router to access the xbox or vice versa. I have explored the possibility that this might be a problem with the ubuntu machine:
    http://www.linuxquestions.org/questions/linux-networking-3/wired-network-to-wireless-problem-727126/
    But I have done everything possible there I think.

    Ping tests from xbox:-
    Ping successful: 192.168.2.2, 192.168.2.1, 192.168.0.8
    Ping unsuccessful: 192.168.0.1, 208.67.222.222 (opendns)

    Ping tests from tomato router:-
    Ping successful: 192.168.2.1, 192.168.0.8
    Ping unsuccessful: 192.168.2.2

    Ping tests from ubuntu box:-
    Ping successful: 192.168.2.1, 192.168.0.8, 192.168.2.2, 192.168.0.1, 208.67.222.222 (opendns)
    Ping unsuccessful: None

    So here is the output from "ip route":

    tomato router:-
    Code:
    192.168.2.0/24 via 192.168.0.8 dev br0 
    192.168.1.0/24 dev vlan1  proto kernel  scope link  src 192.168.1.3 
    192.168.0.0/24 dev br0  proto kernel  scope link  src 192.168.0.1 
    127.0.0.0/8 dev lo  scope link 
    default via 192.168.1.1 dev vlan1 
    Ubuntu box:-
    Code:
    192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.1 
    192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.8 
    169.254.0.0/16 dev wlan0  scope link  metric 1000 
    default via 192.168.0.1 dev wlan0  metric 100 
    "xbox":-
    Code:
    192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.2 
    default via 192.168.2.1 dev eth0 
    
    Could this be a problem with the way I have set up the tomato firmware???

    --- EDIT ---
    Fixed error in IP address of ubuntu box

    -- EDIT 2 --
    Fixed the tomato router ping results
     
  2. jza80

    jza80 Network Guru Member

    You can't have duplicate IPs.

    Either change the IP address of the router or the wlan0 interface on the ubuntu box.
     
  3. yoda230

    yoda230 LI Guru Member

    Shoot, thats a typo, should be 192.168.0.8. I will edit it
     
  4. jza80

    jza80 Network Guru Member

    The routes look okay to me, unless I'm missing something.

    From the Ubuntu box can you ping the router at 192.168.0.1? Can you also get onto the internet from the Ubuntu box?

    .
    .

    Weird that the xbox can ping 192.168.0.8, but not 192.168.0.1. Both IPs are on the same network/subnet.


    You have 192.168.0.8 as successful and unsuccessful, which is it?
     
  5. yoda230

    yoda230 LI Guru Member

    Another typo, I need new glasses. It should read:

    Ping tests from tomato router:-
    Ping successful: 192.168.2.1, 192.168.0.8
    Ping unsuccessful: 192.168.2.2

    The ubuntu box can access the interent and 192.168.0.1 fine. I have been using the ubuntu box and tomato for a couple of years now without problems, its just adding the xbox that is proving problematic.

    I will fix the typo.
     
  6. jza80

    jza80 Network Guru Member

    I agree. Xbox is not getting to the router and visa versa.

    I don't have a Xbox or know enough about them, but is there anything on it like a firewall that would stop it from being to access other parts of your network?
     
  7. yoda230

    yoda230 LI Guru Member

    No I don't think so. Firstly, when the xbox is plugged in directly to the tomato router with an ip address like 192.168.0.9 it works fine. Also I have plugged in my netbook and given it the xbox settings and the same results are seen (well in actual fact the iproute info and ping results are from the test netbook).

    Thanks your help.
     
  8. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    Have you checked that there are no firewall rules on the ubuntu box blocking this type of traffic? That's what it looks like is happening.
     
  9. yoda230

    yoda230 LI Guru Member

    Yes I've checked that. There are no firewall restrictions and the ubuntu box has ip forwarding enabled. I will double check when I get home from work.

    The weird thing is that the router can get across the ubuntu box to the other nic and the "xbox" can get across the ubuntu box to the other nic.
     
  10. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    Okay. Well, one way or another, it looks like the Ubuntu box is not forwarding the traffic. Being able to ping the other interface on the Ubuntu box doesn't say anything about the traffic being forwarded - it's just smart enough to know that that address is also localhost and responds directly.

    Try doing a traceroute from the router to the "xbox", and visa versa.
     
  11. yoda230

    yoda230 LI Guru Member

    Problem solved. It was a firewall issue. When I thought it was clear I was only listing the standard iptables rules and there was an extra set created by moblock. Thanks for all your help.
     

Share This Page