Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Untanglit
    Join Date
    Oct 2009
    Location
    Wake Forest, NC
    Posts
    20

    Default Classless Internet Domain Routing

    I have an Untangle firewall with 6 interfaces. One of these is designated strictly for Ruckus Wireless.

    Interface IPs
    192.168.0.1 Internal (DNS)
    192.168.1.1 eth6
    192.168.2.1 eht7 (wireless Ruckus)
    192.168.3.1 eth8
    192.168.4.1 eth9

    I have my DHCP scope defined to correctly give out 192.168.2.x addresses on eth6

    Problem: Only Android users running Gingerbread 2.3.x cannot pull the correct DHCP information preventing these users from browsing the internet. All other devices, Mac, Windows, iOS, Android 4.0 ICS have no issues and do receive the correct IP information.

    Fact: Gingerbread devices 2.3.x can connect to the network, get an IP from the defined address pool, but the Gateway is incorrect and the DNS server is incorrect. They cannot surf the internet. These devices get an IP = 192.168.2.x, GW = 192.168.0.1 and DNS = 192.168.2.1 (They should be getting GW = 192.168.2.1 and DNS = 192.168.0.1)

    Fact: If I statically assign IP = 192.168.2.x, GW = 192.168.2.1 and DNS = 192.168.0.1 to an Android 2.3.x device, I can connect to the network and surf the internet

    Fact: All other devices get an IP = 192.168.2.x, GW = 192.168.2.1 and DNS = 192.168.0.1 (this works correctly as it should) and the users can surf the internet

    I have tried adding DCHP option 121 to properly route any classless devices to GW 192.168.2.1 using the following entry:
    dhcp-option=121 24,192,168,2,192,168,2,1

    How can I force the DHCP server to assign GW = 192.168.2.1 and DNS = 192.168.0.1 to these devices on the 192.168.2.x network?

  2. #2
    Untangler
    Join Date
    Dec 2010
    Location
    Wisconsin Dells, WI
    Posts
    86

    Default

    Quote Originally Posted by justa20fan View Post
    I have tried adding DCHP option 121 to properly route any classless devices to GW 192.168.2.1 using the following entry:
    dhcp-option=121 24,192,168,2,192,168,2,1
    Check your syntax. Syntax-wise what you should have there is:
    dhcp-option=121,24.192.168.2,192.168.2.1

    Function-wise, I believe you're supposed to specify a subnet, then an IP address to route it to. Like this:
    dhcp-option=121,24.192.168.0/24,192.168.2.1
    Last edited by bhackbarth; 07-08-2012 at 02:15 PM.

  3. #3
    Untanglit
    Join Date
    Oct 2009
    Location
    Wake Forest, NC
    Posts
    20

    Default

    I have seen the syntax a couple of different ways both using commas and periods. What is the correct entry format?

  4. #4
    Untanglit
    Join Date
    Oct 2009
    Location
    Wake Forest, NC
    Posts
    20

    Default

    And is it option 121 or 249 where you specify the GW IP for a particular subnet?

  5. #5
    Untangle Junkie dmorris's Avatar
    Join Date
    Nov 2006
    Location
    San Mateo, CA
    Posts
    11,682

    Default

    Using commas definitely won't work.
    You can read all you could ever desire about dnsmasq options here:
    http://www.thekelleys.org.uk/dnsmasq...smasq-man.html

    You can get some pretty good examples by googling "dnsmasq option 121" that should work in your case as well. Even though they are for different platforms (like ddwrt) they still use dnsmasq.
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  6. #6
    Untanglit
    Join Date
    Oct 2009
    Location
    Wake Forest, NC
    Posts
    20

    Default

    Great, so can you tell me the exact syntax to use to try to accomplish what it is I am trying to accomplish?

  7. #7
    Untanglit
    Join Date
    Oct 2009
    Location
    Wake Forest, NC
    Posts
    20

    Default

    So in reading a bit, my entry should read as follows:

    dhcp-option=121,192.168.2.0/24,192.168.2.1

  8. #8
    Untangler
    Join Date
    Dec 2010
    Location
    Wisconsin Dells, WI
    Posts
    86

    Default

    That syntax is correct.

    Your current entry literally means "Push a static route out to DHCP clients. When the destination network is 192.168.2.0 255.255.255.0, the next hop is 192.168.2.1 to get there".

    In my example I used /24 as an assumption that the subnet mask on was 255.255.255.0. If it is not make sure you update that.

  9. #9
    Untangle Junkie dmorris's Avatar
    Join Date
    Nov 2006
    Location
    San Mateo, CA
    Posts
    11,682

    Default

    Quote Originally Posted by justa20fan View Post
    So in reading a bit, my entry should read as follows:

    dhcp-option=121,192.168.2.0/24,192.168.2.1
    I'm not sure, but that definitely looks better than what you had before.
    I'd give it a try.
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  10. #10
    Newbie IPexpress's Avatar
    Join Date
    Jul 2012
    Location
    Cramlington, UK
    Posts
    6

    Default

    Thats the correct syntax

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2