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

IP ranges

Discussion in 'Tomato Firmware' started by gawd0wns, Jan 25, 2008.

  1. gawd0wns

    gawd0wns LI Guru Member

    Is there anyway to configure the clients on a router running tomato (v1.14), on two separate ip ranges;

    I.E. Router, printer, on 192.168.1.xxx, all clients on 192.168.2.xxx



    Thank you
     
  2. LLigetfa

    LLigetfa LI Guru Member

    Sure, if you use /16 CIDR.
     
  3. mstombs

    mstombs Network Guru Member

    To enable multiple IP ranges you can assign a secondary IP address to the lan-bridge with something like

    Code:
    ifconfig br0:0 192.168.2.1 netmask 255.255.255.0
    Then the router will be on both IP ranges and routing from one subnet to the other will be via the kernel not just the switch, so you could enable/prevent certain users accessing the printer with custom firewall "FORWARD" rules. Need to watch out for nat_loopback though - it may interfere.

    You can even configure dnsmasq to automatically give out the different IP range info, or just give the printer a static IP address?
     

Share This Page