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

Need help

Discussion in 'Tomato Firmware' started by valiene, Oct 10, 2007.

  1. valiene

    valiene LI Guru Member

    I want to use one of my WRT54GL + Tomato to act like an access point and a DHCP server. The topology of my network looks like this :
    Linux box(gateway with one of lan interface configured with 192.168.1.1/24) <--->switch <---> WRT54GL LAN port( IP LAN : 192.168.1.100) <---> wireless clients in DHCP Range : 192.168.1.101 ... 199.
    The problem is the DHCP settings : the wireless client receive their network settings from linksys box with Default gateway : 192.168.1.100 and I want to have 192.168.1.1 which is the lan address of my linux box. There is any way to use the automatic ip settings on wireless clients and still have the right ip address of gateway?
     
  2. mikester

    mikester Network Guru Member

    have you tried entering the info into

    /basic-network.asp
     
  3. valiene

    valiene LI Guru Member

    This is the output from ipconfig /all on one of DHCP Clients :

    Ethernet adapter Local Area Connection:

    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 192.168.1.23
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.100
    DHCP Server . . . . . . . . . . . : 192.168.1.100
    DNS Servers . . . . . . . . . . . : 193.226.128.1
    193.226.128.129

    and this are the options from Basic -> Network
     

    Attached Files:

  4. mstombs

    mstombs Network Guru Member

    While I am not sure of your Network Topology and why you want to run dhcp on the router and not on your server...

    The dhcp server in Tomato is dnsmasq. By default it hands out itself as the default gateway, but this can be changed entering options via the Web GUI. In this thread the user successfully used it to give out different gateways based on Mac address

    http://www.linksysinfo.org/forums/showthread.php?t=53835
     
  5. valiene

    valiene LI Guru Member

    I will try the solution from that topic. Thanks
     
  6. valiene

    valiene LI Guru Member

    Finally I managed to solve the request :
    Advanced -> DHCP/DNS -> DNS Masq Custom Configuration :
    #I used wildcard * to include all the MAC address,
    dhcp-mac=red,*:*:*:*:*:*
    #Where x.x.x.x is the Default Gateway that you want to send to dhcp clients (other than the LAN IP of router)
    dhcp-option = net:red, option:router, x.x.x.x
     

Share This Page