0 Replies Latest reply: Jun 27, 2014 2:53 AM by 964891 RSS

    Solaris 11.1 - dhcpagent doesn't seem to request a hostname no matter the configuration

    964891

      Hi there,

       

      This is my first here. We have a problem in Solaris 11.1 regarding the DHCP client. The Solaris host is connected to a Windows network, and I believe that IP addresses are given by the DHCP Server on a Windows Server. To DHCP Server register the hostname on the DNS Servers (also Windows), I believe that Solaris DHCP client should ask for a specific hostname.

       

      I have tried including REQUEST_HOSTNAME=yes on /etc/default/dhcpagent (it worked on Solaris 10 I believe), and also specifying the hostname with: ipadm create-addr -T dhcp -h foo net0/v4 (in this case ‘foo’ is the hostname), but with no success.In the latter, I have also switched to manual network configuration with: netadm enable -p ncp DefaultFixed

       

       

      I have used Wireshark on Windows, and snoop on Solaris, and I’m almost sure that the dhcpagent is not sending the hostname to the DHCP server.

       

      Below I send an example of the snoop output for the Solaris machine and other machine on the network.

      (please note that on example #2 there is a "Client Hostname" passed.

       

      Could be a bug on Solaris 11.1? What else can I try?

      Thank you very much for all your support.

       

      Example #1 - Solaris 11.1

       

      DHCP: ----- (Options) field options -----

      DHCP:

      DHCP: Message type = DHCPDISCOVER

      DHCP: Maximum DHCP Message Size = 1472 bytes

      DHCP: IP Address Lease Time = -1 seconds

      DHCP: Client Class Identifier = "SUNW.i86pc"

      DHCP: Requested Options:

      DHCP:    1 (Subnet Mask)

      DHCP:    3 (Router)

      DHCP:    6 (DNS Servers)

      DHCP:   12 (Client Hostname)

      DHCP:   15 (DNS Domain Name)

      DHCP:   28 (Broadcast Address)

      DHCP:   43 (Vendor Specific Options)

       

       

                 0: ffff ffff ffff 00e0 4c68 96d1 0800 4500    ........Lh....E.

                16: 0148 c7d6 0000 ff11 f2ce 0000 0000 ffff    .H..............

                32: ffff 0044 0043 0134 171c 0101 0600 6d8a    ...D.C.4......m.

                48: eeb7 0000 0000 0000 0000 0000 0000 0000    ................

                64: 0000 0000 0000 00e0 4c68 96d1 0000 0000    ........Lh......

                80: 0000 0000 0000 0000 0000 0000 0000 0000    ................

                96: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               112: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               128: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               144: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               160: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               176: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               192: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               208: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               224: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               240: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               256: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               272: 0000 0000 0000 6382 5363 3501 0139 0205    ......c.Sc5..9..

               288: c033 04ff ffff ff3c 0a53 554e 572e 6938    .3.....<.SUNW.i8

               304: 3670 6337 0701 0306 0c0f 1c2b ff00 0000    6pc7.......+....

               320: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               336: 0000 0000 0000                             ......

       

      ETHER:  ----- Ether Header -----

       

       

      Example #2: - Another machine on the network (Windows):

       

      DHCP: ----- (Options) field options -----

      DHCP:

      DHCP: Message type = DHCPINFORM

      DHCP: Client Identifier =       0x01 0x88 0x51 0xFB 0xC7 0x7D 0x81 (unprintable)

      DHCP: Client Hostname = agbento1-p

      DHCP: Client Class Identifier = "MSFT 5.0"

      DHCP: Requested Options:

      DHCP:    1 (Subnet Mask)

      DHCP:   15 (DNS Domain Name)

      DHCP:    3 (Router)

      DHCP:    6 (DNS Servers)

      DHCP:   44 (NetBIOS RFC 1001/1002 Name Servers)

      DHCP:   46 (NetBIOS Node Type)

      DHCP:   47 (NetBIOS Scope)

      DHCP:   31 (Perform Router Discovery Flag)

      DHCP:   33 (Static Routes)

      DHCP:   121 (Unrecognized Option)

      DHCP:   249 (Site Option)

      DHCP:   43 (Vendor Specific Options)

      DHCP:   252 (Site Option)

       

       

                 0: ffff ffff ffff 8851 fbc7 7d81 0800 4500    .......Q..}...E.

                16: 0148 082c 0000 8011 cccf 0a5c 5a4e ffff    .H.,.......\ZN..

                32: ffff 0044 0043 0134 3adc 0101 0600 b31a    ...D.C.4:.......

                48: 1941 0000 8000 0a5c 5a4e 0000 0000 0000    .A.....\ZN......

                64: 0000 0000 0000 8851 fbc7 7d81 0000 0000    .......Q..}.....

                80: 0000 0000 0000 0000 0000 0000 0000 0000    ................

                96: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               112: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               128: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               144: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               160: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               176: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               192: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               208: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               224: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               240: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               256: 0000 0000 0000 0000 0000 0000 0000 0000    ................

               272: 0000 0000 0000 6382 5363 3501 083d 0701    ......c.Sc5..=..

               288: 8851 fbc7 7d81 0c0a 6167 6265 6e74 6f31    .Q..}...agbento1

               304: 2d70 3c08 4d53 4654 2035 2e30 370d 010f    -p<.MSFT 5.07...

               320: 0306 2c2e 2f1f 2179 f92b fcff 0000 0000    ..,./.!y.+......

               336: 0000 0000 0000                             ......

       

      ETHER:  ----- Ether Header -----