Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Newer Version of the dhclient-script

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    29 Posts 4 Posters 9.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Beerman
      last edited by

      There is a newer Version of the dhclient-script on the freebsd CVS Server.

      1.20.2.1.4.1 2010/06/14 02:09:06
      

      http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/dhclient/dhclient-script?f=u&only_with_tag=RELENG_8_1&logsort=date

      can you implement the this Version of the dhclient-script?

      I have an Issue with the current Version: For IPTV the ISP the Routes for the IPTV-Interface is set by DHCP, this Version is trying to set 255.255.255.255 as a GW.

      1 Reply Last reply Reply Quote 0
      • B
        Beerman
        last edited by

        possible?

        Thx!

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          Can you please show me your logs?
          What version of pfsense are you using ….

          1 Reply Last reply Reply Quote 0
          • B
            Beerman
            last edited by

            Build is:

            2.0-BETA4 (i386)
            built on Sat Dec 4 02:44:21 EST 2010 
            

            with dhclient-script in version:

            # $FreeBSD: src/sbin/dhclient/dhclient-script,v 1.4 2005/06/10 03:41:18 brooks Exp $
            

            I switched to the newest Version of this script. (Version motioned in my first post), my problems with IPTV while switching the channel are gone…

            I think in the older Version, the script is trying to set 255.255.255.255 as GW.

            Which log do you need?

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              System log.
              And try with the newer snapshot i made some changes to dhclient script regarding default gw.
              Otherwise we are same as freebsd since i synced some time ago.

              1 Reply Last reply Reply Quote 0
              • B
                Beerman
                last edited by

                Sorry,

                with a newer build,

                2.0-BETA4 (i386)
                built on Thu Dec 9 05:12:59 EST 2010 
                ```,
                
                I have the same Issue. Switching the Channels with IPTV is extremely slow, as if the Routes are not set via DHCP.
                
                Here the System Logs with the original dhclient script:
                
                

                Dec 9 22:22:44  kernel: arpresolve: can't allocate llinfo for 255.255.255.255
                Dec 9 22:22:39  dhclient[63977]: bound to 93.213.238.47 -- renewal in 43200 seconds.
                Dec 9 22:22:39  dhclient: Creating resolv.conf
                Dec 9 22:22:38  dhclient: New Classless Static Routes (vr2_vlan8): 193.158.137.14/32 93.213.255.254 87.140.255.0/25 93.213.255.254 87.141.128.0/17 93.213.255.254 193.158.34.0/23 93.213.255.254 212.184.168.0/24 93.213.255.254 217.6.164.48/29 93.213.255.254 217.6.164.45/32 93.213.255.254 217.6.167.128/26 93.213.255.254
                Dec 9 22:22:38  dhclient: Adding new routes to interface: vr2_vlan8
                Dec 9 22:22:38  dhclient: New Routers (vr2_vlan8): 255.255.255.255
                Dec 9 22:22:38  dhclient: New Broadcast Address (vr2_vlan8): 93.213.255.255
                Dec 9 22:22:38  dhclient: New Subnet Mask (vr2_vlan8): 255.255.224.0
                Dec 9 22:22:38  dhclient: New IP Address (vr2_vlan8): 93.213.238.47
                Dec 9 22:22:38  dhclient: ifconfig vr2_vlan8 inet 93.213.238.47 netmask 255.255.224.0 broadcast 93.213.255.255
                Dec 9 22:22:38  dhclient: Starting add_new_address()
                Dec 9 22:22:38  dhclient: BOUND
                Dec 9 22:22:38  dhclient[63977]: DHCPACK from 93.213.255.254
                Dec 9 22:22:38  dhclient[63977]: DHCPREQUEST on vr2_vlan8 to 255.255.255.255 port 67
                Dec 9 22:22:38  dhclient: ARPCHECK
                Dec 9 22:22:36  dhclient: ARPSEND
                Dec 9 22:22:36  dhclient[63977]: DHCPOFFER from 93.213.255.254
                Dec 9 22:22:36  dhclient[63977]: DHCPDISCOVER on vr2_vlan8 to 255.255.255.255 port 67 interval 1
                Dec 9 22:22:30  last message repeated 3 times
                Dec 9 22:22:29  kernel: arpresolve: can't allocate llinfo for 255.255.255.255
                Dec 9 22:22:24  dhclient[63977]: DHCPREQUEST on vr2_vlan8 to 255.255.255.255 port 67
                Dec 9 22:22:24  dhclient: PREINI

                
                And with the newest script from the CVS-Server
                
                

                Dec 9 22:28:32  dhclient[38254]: bound to 93.213.238.47 -- renewal in 43200 seconds.
                Dec 9 22:28:32  dhclient: New Classless Static Routes (vr2_vlan8): 193.158.137.14/32 93.213.255.254 87.140.255.0/25 93.213.255.254 87.141.128.0/17 93.213.255.254 193.158.34.0/23 93.213.255.254 212.184.168.0/24 93.213.255.254 217.6.164.48/29 93.213.255.254 217.6.164.45/32 93.213.255.254 217.6.167.128/26 93.213.255.254
                Dec 9 22:28:32  dhclient: New Routers (vr2_vlan8): 255.255.255.255
                Dec 9 22:28:32  dhclient: New Broadcast Address (vr2_vlan8): 93.213.255.255
                Dec 9 22:28:32  dhclient: New Subnet Mask (vr2_vlan8): 255.255.224.0
                Dec 9 22:28:32  dhclient: New IP Address (vr2_vlan8): 93.213.238.47
                Dec 9 22:28:32  dhclient[38254]: DHCPACK from 93.213.255.254
                Dec 9 22:28:31  dhclient[38254]: DHCPREQUEST on vr2_vlan8 to 255.255.255.255 port 67
                Dec 9 22:28:28  dhclient[38254]: DHCPOFFER from 93.213.255.254
                Dec 9 22:28:28  dhclient[38254]: DHCPDISCOVER on vr2_vlan8 to 255.255.255.255 port 67 interval 1
                Dec 9 22:28:21  dhclient[38254]: DHCPREQUEST on vr2_vlan8 to 255.255.255.255 port 67
                Dec 9 22:28:18  dhclient[38254]: DHCPREQUEST on vr2_vlan8 to 255.255.255.255 port 6

                
                Many thanks in advance for your support!
                1 Reply Last reply Reply Quote 0
                • E
                  eri--
                  last edited by

                  Can you try with this change
                  https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/bb92b70f9c49e47ed072f61294fc102121e2be0d

                  Or just update to new snapshot.

                  1 Reply Last reply Reply Quote 0
                  • B
                    Beerman
                    last edited by

                    So, I made the change manually.

                    But unfortunately my Issue isn´t solved. When I return to the script from the CVS Server, the Issue is gone.

                    Do you need further infos, tests or logs?

                    Thx!

                    1 Reply Last reply Reply Quote 0
                    • B
                      Beerman
                      last edited by

                      Do you need more Infos / Logs or Tests?

                      1 Reply Last reply Reply Quote 0
                      • E
                        eri--
                        last edited by

                        Can you tell me what FreeBSD cvs version does that the pfSense one does not?

                        1 Reply Last reply Reply Quote 0
                        • B
                          Beerman
                          last edited by

                          I have the Issue with IPTV.

                          FIrst 10 sec goes via UDP Stream, after 10 seconds the stream switch to Multicast. The routes for the UDP-Stream (and maybe other services) are set via DHCP.

                          If the routes aren´t set, you get the first 10 seconds a freeze image and after switching to Multicast, everything is fine. So if you switch the channels you have to wait 10 sec, before you can watch TV.

                          So, with the original dhclient-script, the routes are set, but the behavior is like the routes aren´t set. I don´t know exactly, why. The routes aren´t different to the CVS script. Bute with the script from the CVS server, the first 10 sec are working fine.

                          1 Reply Last reply Reply Quote 0
                          • E
                            eri--
                            last edited by

                            That might be because or PBR but i cannot really tell.

                            1 Reply Last reply Reply Quote 0
                            • S
                              snotty77
                              last edited by

                              Hi,

                              I also have this Problem with this script and IPTV. Why is it so difficult for you to use the new script from the server. With this script our problems are gone and you do not have to debug something.
                              Greetings
                                Snotty

                              1 Reply Last reply Reply Quote 0
                              • B
                                Beerman
                                last edited by

                                Do you need more tests / infos or logs?

                                Thx

                                1 Reply Last reply Reply Quote 0
                                • B
                                  Beerman
                                  last edited by

                                  With the original script i got this for the Interface in

                                  System:Gateways:

                                  
                                  Name 	           Interface 	Gateway 	        Monitor IP 	        Description
                                  ------------------------------------------------------------------------------------------------------------------
                                  GW_OPT3 	        IPTV 	        255.255.255.255 	255.255.255.255 	Interfaceopt3dynamic gateway
                                  

                                  With the script from the cvs server i get:

                                  
                                  Name 	   Interface 	    Gateway 	        Monitor IP 	        Description
                                  -----------------------------------------------------------------------------------------------------------
                                  GW_OPT3  IPTV  	       dynamic 	        dynamic 	        Interfaceopt3dynamic gateway
                                  
                                  

                                  Maybe this informations is useful for you…

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Beerman
                                    last edited by

                                    @Beerman:

                                    With the original script i got this for the Interface in

                                    System:Gateways:

                                    
                                    Name 	           Interface 	Gateway 	        Monitor IP 	        Description
                                    ------------------------------------------------------------------------------------------------------------------
                                    GW_OPT3 	        IPTV 	        255.255.255.255 	255.255.255.255 	Interfaceopt3dynamic gateway
                                    

                                    With the script from the cvs server i get:

                                    
                                    Name 	   Interface 	    Gateway 	        Monitor IP 	        Description
                                    -----------------------------------------------------------------------------------------------------------
                                    GW_OPT3  IPTV  	       dynamic 	        dynamic 	        Interfaceopt3dynamic gateway
                                    
                                    

                                    Maybe this informations is useful for you…

                                    Is this Information helpful to you? Or do need another Infos / Tests?

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      Beerman
                                      last edited by

                                      Any news, regarding this topic?

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Beerman
                                        last edited by

                                        Will this Issue be fixed in the final version?

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          the6thday
                                          last edited by

                                          I second the request to update the dhclient-script!

                                          Everyone using T-Home IPTV in Germany is going to have issues if its not updated…

                                          To clarify this problem:

                                          T-Home is using vlans to seperate Web and IPTV traffic. The Web traffic is using PPPoE on Vlan 7, the IPTV traffic is using dhcp on Vlan8.
                                          IPTV is using unicast for the first 10 seconds of the stream and then switches to multicast which is working very good with the new igmp proxy(which is still spamming the main systemlog making it unusable btw!!!)

                                          The problem which is fixed by the new dhclient script is that the old script sets a gateway to 255.255.255.255 which is useless and causes the first 10 seconds of unicast to fail which in turn makes switching channels very slow because the STB has to wait for the multicast to begin(1-2 seconds...)

                                          This is a packetcapture for the iptv interface dhcp reply:

                                          07:30:37.027153 00:19:db:e3:89:6a > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto UDP (17), length 328)
                                              93.228.4.94.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:19:db:e3:89:6a, length 300, xid 0x8113a23f, Flags [none] (0x0000)
                                          	  Client-Ethernet-Address 00:19:db:e3:89:6a
                                          	  Vendor-rfc1048 Extensions
                                          	    Magic Cookie 0x63825363
                                          	    DHCP-Message Option 53, length 1: Request
                                          	    Requested-IP Option 50, length 4: 93.228.4.94
                                          	    Client-ID Option 61, length 7: ether 00:19:db:e3:89:6a
                                          	    Hostname Option 12, length 8: "dayroute"
                                          	    Parameter-Request Option 55, length 8: 
                                          	      Subnet-Mask, BR, Time-Zone, Classless-Static-Route
                                          	      Default-Gateway, Domain-Name, Domain-Name-Server, Hostname
                                          07:30:37.093868 00:15:c7:22:89:00 > 00:19:db:e3:89:6a, ethertype IPv4 (0x0800), length 375: (tos 0x0, ttl 255, id 17300, offset 0, flags [none], proto UDP (17), length 361)
                                              93.228.31.254.67 > 93.228.4.94.68: [no cksum] BOOTP/DHCP, Reply, length 333, xid 0x8113a23f, Flags [none] (0x0000)
                                          	  Your-IP 93.228.4.94
                                          	  Server-IP 193.158.137.14
                                          	  Gateway-IP 93.228.31.254
                                          	  Client-Ethernet-Address 00:19:db:e3:89:6a
                                          	  sname "DHSTG001"
                                          	  Vendor-rfc1048 Extensions
                                          	    Magic Cookie 0x63825363
                                          	    Subnet-Mask Option 1, length 4: 255.255.224.0
                                          	    Default-Gateway Option 3, length 4: 255.255.255.255
                                          	    Lease-Time Option 51, length 4: 86400
                                          	    DHCP-Message Option 53, length 1: ACK
                                          	    Server-ID Option 54, length 4: 193.158.137.14
                                          	    RN Option 58, length 4: 43200
                                          	    RB Option 59, length 4: 75600
                                          	    Classless-Static-Route Option 121, length 51: (193.158.137.14/32:93.228.31.254),(87.140.255.0/25:93.228.31.254),(87.141.128.0/17:93.228.31.254),(193.158.34.0/23:93.228.31.254),(212.184.168.0/24:93.228.31.254),(217.6.167.160/27:93.228.31.254)
                                          

                                          old script log entrys:

                                          Feb 25 07:30:37 	dhclient: PREINIT
                                          Feb 25 07:30:37 	dhclient[14532]: DHCPREQUEST on em1_vlan8 to 255.255.255.255 port 67
                                          Feb 25 07:30:37 	dhclient[14532]: DHCPACK from 93.228.31.254
                                          Feb 25 07:30:37 	dhclient: REBOOT
                                          Feb 25 07:30:37 	dhclient: Starting add_new_address()
                                          Feb 25 07:30:37 	dhclient: ifconfig em1_vlan8 inet 93.228.4.94 netmask 255.255.224.0 broadcast 93.228.31.255
                                          Feb 25 07:30:37 	dhclient: New IP Address (em1_vlan8): 93.228.4.94
                                          Feb 25 07:30:37 	dhclient: New Subnet Mask (em1_vlan8): 255.255.224.0
                                          Feb 25 07:30:37 	dhclient: New Broadcast Address (em1_vlan8): 93.228.31.255
                                          Feb 25 07:30:37 	dhclient: New Routers (em1_vlan8): 255.255.255.255
                                          Feb 25 07:30:37 	dhclient: Adding new routes to interface: em1_vlan8
                                          Feb 25 07:30:37 	dhclient: New Classless Static Routes (em1_vlan8): 193.158.137.14/32 93.228.31.254 87.140.255.0/25 93.228.31.254 87.141.128.0/17 93.228.31.254 193.158.34.0/23 93.228.31.254 212.184.168.0/24 93.228.31.254 217.6.167.160/27 93.228.31.254
                                          Feb 25 07:30:37 	dhclient: Creating resolv.conf
                                          Feb 25 07:30:37 	dhclient[14532]: bound to 93.228.4.94 -- renewal in 43200 seconds.
                                          

                                          new script log entrys:

                                          Feb 25 07:45:23 	dhclient[22251]: DHCPREQUEST on em1_vlan8 to 255.255.255.255 port 67
                                          Feb 25 07:45:23 	dhclient[22251]: DHCPACK from 93.228.31.254
                                          Feb 25 07:45:23 	dhclient: New IP Address (em1_vlan8): 93.228.4.94
                                          Feb 25 07:45:23 	dhclient: New Subnet Mask (em1_vlan8): 255.255.224.0
                                          Feb 25 07:45:23 	dhclient: New Broadcast Address (em1_vlan8): 93.228.31.255
                                          Feb 25 07:45:23 	dhclient: New Routers (em1_vlan8): 255.255.255.255
                                          Feb 25 07:45:23 	dhclient: New Classless Static Routes (em1_vlan8): 193.158.137.14/32 93.228.31.254 87.140.255.0/25 93.228.31.254 87.141.128.0/17 93.228.31.254 193.158.34.0/23 93.228.31.254 212.184.168.0/24 93.228.31.254 217.6.167.160/27 93.228.31.254
                                          Feb 25 07:45:23 	dhclient[22251]: bound to 93.228.4.94 -- renewal in 43200 seconds.
                                          

                                          Which results in this:

                                          @Beerman:

                                          With the original script i got this for the Interface in

                                          System:Gateways:

                                          
                                          Name 	           Interface 	Gateway 	        Monitor IP 	        Description
                                          ------------------------------------------------------------------------------------------------------------------
                                          GW_OPT3 	        IPTV 	        255.255.255.255 	255.255.255.255 	Interfaceopt3dynamic gateway
                                          

                                          With the script from the cvs server i get:

                                          
                                          Name 	   Interface 	    Gateway 	        Monitor IP 	        Description
                                          -----------------------------------------------------------------------------------------------------------
                                          GW_OPT3  IPTV  	       dynamic 	        dynamic 	        Interfaceopt3dynamic gateway
                                          
                                          

                                          Maybe this informations is useful for you…

                                          Both scripts however create the same routing entrys so this is aparently not a routing issue…:

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            the6thday
                                            last edited by

                                            push

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.