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

routing between dual tomato routers

Discussion in 'Tomato Firmware' started by dylanjustice, Feb 15, 2011.

  1. dylanjustice

    dylanjustice Addicted to LI Member

    I've got two separate private class C networks, one for VOIP (192.168.2/24), one for data (192.168.0/24). Each has its own tomato router gateway and its own internet connection.

    I put one of the ports on the data router on a separate vlan with an IP on the voice network, and a cable to the voice router. It sort of works. I can ping the phones from the data network, but not vice versa. Is something missing in my routing table?


    Code:
    # ssh 192.168.0.1 (data router)
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.0     *               255.255.255.0   U     0      0        0 vlan2  <-- on voice network!
    192.168.0.0     *               255.255.255.0   U     0      0        0 br0
    xx.xx.xx.0     *               255.255.252.0   U     0      0        0 vlan1
    127.0.0.0       *               255.0.0.0       U     0      0        0 lo
    default         xx.xx.xx.1     0.0.0.0         UG    0      0        0 vlan1   
    # ping 192.168.2.101 (a phone)
    PING 192.168.2.101 (192.168.2.101): 56 data bytes
    64 bytes from 192.168.2.101: seq=0 ttl=250 time=2.498 ms
    
    
    # ssh 192.168.2.1 (voice router)
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    yyy.yyy.yyy.0  *               255.255.255.0   U     0      0        0 vlan1
    192.168.2.0     *               255.255.255.0   U     0      0        0 br0
    192.168.0.0     192.168.2.3     255.255.255.0   UG    0      0        0 br0
    127.0.0.0       *               255.0.0.0       U     0      0        0 lo
    default         dsl-xxxa.edge9. 0.0.0.0         UG    0      0        0 vlan1
    
    # ping 192.168.0.1 (the data router)
    PING 192.168.0.1 (192.168.0.1): 56 data bytes
    64 bytes from 192.168.0.1: seq=0 ttl=64 time=1.732 ms
    
    # ping 192.168.0.2 (a linux box on the data network)
    PING 192.168.0.2 (192.168.0.2): 56 data bytes
    (no response)
     

Share This Page