SRX

Expand all | Collapse all

DHCP client not accepting unicast DHCP offer

Jump to Best Answer
  • 1.  DHCP client not accepting unicast DHCP offer

    Posted 10-29-2015 23:56

    Hi

     

    I am trying to configure an SRX110H2-VA (12.1X44-D15.5) as a dhcp server using dhcp-local-server.

     

    The SRX is also setup as a DHCP client from the ISP at fe-0/0/0 and this works fine.

     

    When I plug in some devices in fe-0/0/[1-7] such as a laptop, they are assigned an IP address fine, but other devices such as an ethernet EFTPOS machine are not. The client is stuck at SELECTING.   

     

     

        services {
            ssh;
            telnet;
            xnm-clear-text;
            dhcp-local-server {
                traceoptions {
                    file dhcp.dbg;
                    flag all;
                }
                group lan {
                    interface vlan.1;
                }
            }

    ......

    interfaces {
        fe-0/0/0 {
            unit 0 {
                family inet {
                    dhcp-client;
                }
            }
        }
        fe-0/0/1 {
            unit 0 {
                family ethernet-switching {
                    port-mode access;
                    vlan {
                        members 1;
                    }
                }
            }
        }
        fe-0/0/2 {
            unit 0 {
                family ethernet-switching {
                    port-mode access;
                    vlan {
                        members 1;
                    }
                }
            }
        }

    ...... etc

    access {
        address-assignment {
            pool lan {
                family inet {
                    network 192.168.62.0/24;
                    range lan-range {
                        low 192.168.62.26;
                        high 192.168.62.36;
                    }
                    dhcp-attributes {
                        server-identifier 192.168.62.254;
                        name-server {
                            8.8.8.8;                    }
                        router {
                            192.168.62.254;
                        }
                    }
                }
            }
        }
    }

    ......

    vlans {
        default {
            vlan-id 1;
            l3-interface vlan.1;
        }
    }

     

     

    Working device:

    14:51:47.284781  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9150, offset 0, flags [none], proto: UDP (17), length: 336) 192.168.62.27.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 308, xid 0xcf56f43a, Flags [none] (0x0000)
              Client-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Hostname Option 12, length 5: "pc"
                FQDN Option 81, length 18: "pc.xxx.local"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 3: 220.1.0
    14:51:47.285070  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9150, offset 0, flags [none], proto: UDP (17), length: 336) 192.168.62.27.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 308, xid 0xcf56f43a, Flags [none] (0x0000)
              Client-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Hostname Option 12, length 5: "pc"
                FQDN Option 81, length 18: "pc.xxx.local"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 3: 220.1.0
    14:51:47.318579 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 297: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 45889, offset 0, flags [none], proto: UDP (17), length: 279) 192.168.62.254.67 > 255.255.255.255.68: [udp sum ok] BOOTP/DHCP, Reply, length 251, xid 0xcf56f43a, Flags [none] (0x0000)
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: NACK
                Server-ID Option 54, length 4: 192.168.62.254
    14:51:47.353012 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 297: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 45890, offset 0, flags [none], proto: UDP (17), length: 279) 192.168.62.254.67 > 255.255.255.255.68: [udp sum ok] BOOTP/DHCP, Reply, length 251, xid 0xcf56f43a, Flags [none] (0x0000)
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: NACK
                Server-ID Option 54, length 4: 192.168.62.254
    14:51:51.350194  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9151, offset 0, flags [none], proto: UDP (17), length: 328) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 300, xid 0x5a8827d, Flags [none] (0x0000)
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                NOAUTO Option 116, length 1: Y
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Hostname Option 12, length 5: "pc"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 2: 220.0
    14:51:51.353826  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9151, offset 0, flags [none], proto: UDP (17), length: 328) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 300, xid 0x5a8827d, Flags [none] (0x0000)
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                NOAUTO Option 116, length 1: Y
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Hostname Option 12, length 5: "pc"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 2: 220.0
    14:51:51.470767 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:1c:c4:c9:fe:0a, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 45901, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.27.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0x5a8827d, Flags [none] (0x0000)
              Your-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Offer
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    14:51:51.477469  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9152, offset 0, flags [none], proto: UDP (17), length: 348) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 320, xid 0x5a8827d, Flags [none] (0x0000)
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Requested-IP Option 50, length 4: 192.168.62.27
                Server-ID Option 54, length 4: 192.168.62.254
                Hostname Option 12, length 5: "pc"
                FQDN Option 81, length 18: "pc.xxx.local"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 3: 220.1.0
    14:51:51.477752  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9152, offset 0, flags [none], proto: UDP (17), length: 348) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 320, xid 0x5a8827d, Flags [none] (0x0000)
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Requested-IP Option 50, length 4: 192.168.62.27
                Server-ID Option 54, length 4: 192.168.62.254
                Hostname Option 12, length 5: "pc"
                FQDN Option 81, length 18: "pc.xxx.local"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 3: 220.1.0
    14:51:51.565197 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:1c:c4:c9:fe:0a, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 45902, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.27.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0x5a8827d, Flags [none] (0x0000)
              Your-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: ACK
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    14:51:56.877098  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9165, offset 0, flags [none], proto: UDP (17), length: 336) 192.168.62.27.68 > 192.168.62.254.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 308, xid 0x4f4e2618, Flags [none] (0x0000)
              Client-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Hostname Option 12, length 5: "pc"
                FQDN Option 81, length 18: "pc.xxx.local"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 3: 220.1.0
    14:51:56.877392  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl 128, id 9165, offset 0, flags [none], proto: UDP (17), length: 336) 192.168.62.27.68 > 192.168.62.254.67: [udp sum ok] BOOTP/DHCP, Request from 00:1c:c4:c9:fe:0a, length 308, xid 0x4f4e2618, Flags [none] (0x0000)
              Client-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Request
                Client-ID Option 61, length 7: ether 00:1c:c4:c9:fe:0a
                Hostname Option 12, length 5: "pc"
                FQDN Option 81, length 18: "pc.xxx.local"
                Vendor-Class Option 60, length 8: "MSFT 5.0"
                Parameter-Request Option 55, length 11: 
                  Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
                  Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
                  Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
                Vendor-Option Option 43, length 3: 220.1.0
    14:51:56.918128 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:1c:c4:c9:fe:0a, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 45923, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.27.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0x4f4e2618, Flags [none] (0x0000)
              Client-IP 192.168.62.27
              Your-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: ACK
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    14:51:56.961273 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:1c:c4:c9:fe:0a, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 45924, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.27.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0x4f4e2618, Flags [none] (0x0000)
              Client-IP 192.168.62.27
              Your-IP 192.168.62.27
              Client-Ethernet-Address 00:1c:c4:c9:fe:0a
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: ACK
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    show dhcp server binding detail
    
    Client IP Address:  192.168.62.27
         Hardware Address:             00:1c:c4:c9:fe:0a
         State:                        BOUND(LOCAL_SERVER_STATE_BOUND)
         Lease Expires:                2015-10-31 14:51:56 UTC
         Lease Expires in:             86175 seconds
         Lease Start:                  2015-10-30 14:51:56 UTC
         Last Packet Received:         2015-10-30 14:51:56 UTC
         Incoming Client Interface:    vlan.1
         Client Interface Vlan Id:     1
         Server Identifier:            192.168.62.254
         Session Id:                   13
         Client Pool Name:             lan

     

     

    Non working device:

    14:45:48.405424  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl  64, id 211, offset 0, flags [none], proto: UDP (17), length: 311) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:03:81:4f:90:f6, length 283, xid 0xe82c515d, Flags [none] (0x0000)
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                MSZ Option 57, length 2: 1500
                Client-ID Option 61, length 7: ether 00:03:81:4f:90:f6
                Hostname Option 12, length 16: "eftp002029938179"
                Parameter-Request Option 55, length 6: 
                  Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
                  POP3, SMTP
    14:45:48.405726  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl  64, id 211, offset 0, flags [none], proto: UDP (17), length: 311) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:03:81:4f:90:f6, length 283, xid 0xe82c515d, Flags [none] (0x0000)
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                MSZ Option 57, length 2: 1500
                Client-ID Option 61, length 7: ether 00:03:81:4f:90:f6
                Hostname Option 12, length 16: "eftp002029938179"
                Parameter-Request Option 55, length 6: 
                  Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
                  POP3, SMTP
    14:45:48.442132 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:03:81:4f:90:f6, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 44680, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.26.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0xe82c515d, Flags [none] (0x0000)
              Your-IP 192.168.62.26
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Offer
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    14:45:48.480600 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:03:81:4f:90:f6, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 44681, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.26.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0xe82c515d, Flags [none] (0x0000)
              Your-IP 192.168.62.26
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Offer
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    14:45:50.649181  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl  64, id 212, offset 0, flags [none], proto: UDP (17), length: 311) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:03:81:4f:90:f6, length 283, xid 0xe82c515d, secs 2, Flags [none] (0x0000)
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                MSZ Option 57, length 2: 1500
                Client-ID Option 61, length 7: ether 00:03:81:4f:90:f6
                Hostname Option 12, length 16: "eftp002029938179"
                Parameter-Request Option 55, length 6: 
                  Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
                  POP3, SMTP
    14:45:50.649471  In 
            Juniper PCAP Flags [Ext, no-L2, In], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            PFE proto 2 (ipv4): (tos 0x0, ttl  64, id 212, offset 0, flags [none], proto: UDP (17), length: 311) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:03:81:4f:90:f6, length 283, xid 0xe82c515d, secs 2, Flags [none] (0x0000)
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Discover
                MSZ Option 57, length 2: 1500
                Client-ID Option 61, length 7: ether 00:03:81:4f:90:f6
                Hostname Option 12, length 16: "eftp002029938179"
                Parameter-Request Option 55, length 6: 
                  Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
                  POP3, SMTP
    14:45:51.267873 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:03:81:4f:90:f6, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 44690, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.26.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0xe82c515d, Flags [none] (0x0000)
              Your-IP 192.168.62.26
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Offer
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    14:45:51.304952 Out 
            Juniper PCAP Flags [Ext], PCAP Extension(s) total length 22
              Device Media Type Extension TLV #3, length 1, value: Ethernet (1)
              Logical Interface Encapsulation Extension TLV #6, length 1, value: Ethernet (14)
              Device Interface Index Extension TLV #1, length 2, value: 34048
              Logical Interface Index Extension TLV #4, length 4, value: 71
              Logical Unit Number Extension TLV #5, length 4, value: 1
            -----original packet-----
            84:b5:9c:58:52:08 > 00:03:81:4f:90:f6, ethertype 802.1Q (0x8100), length 321: vlan 1, p 6, ethertype IPv4, (tos 0x0, ttl  64, id 44691, offset 0, flags [none], proto: UDP (17), length: 303) 192.168.62.254.67 > 192.168.62.26.68: [udp sum ok] BOOTP/DHCP, Reply, length 275, xid 0xe82c515d, Flags [none] (0x0000)
              Your-IP 192.168.62.26
              Client-Ethernet-Address 00:03:81:4f:90:f6
              Vendor-rfc1048 Extensions
                Magic Cookie 0x63825363
                DHCP-Message Option 53, length 1: Offer
                Lease-Time Option 51, length 4: 86400
                Subnet-Mask Option 1, length 4: 255.255.255.0
                Server-ID Option 54, length 4: 192.168.62.254
                Default-Gateway Option 3, length 4: 192.168.62.254
                Domain-Name-Server Option 6, length 4: 8.8.8.8
    show dhcp server binding detail
    
    Client IP Address:  192.168.62.26
         Hardware Address:             00:03:81:4f:90:f6
         State:                        SELECTING(LOCAL_SERVER_STATE_CLIENT_SELECTING
    )
         Lease Expires:                2015-10-31 14:33:17 UTC
         Lease Expires in:             86277 seconds
         Lease Start:                  2015-10-30 14:33:17 UTC
         Last Packet Received:         2015-10-30 14:34:25 UTC
         Incoming Client Interface:    vlan.1
         Client Interface Vlan Id:     1
         Server Identifier:            0.0.0.0
         Session Id:                   12
         Client Pool Name:             lan

     

     

    Thanks



  • 2.  RE: DHCP client not accepting unicast DHCP offer

    Posted 11-09-2015 23:39

    Any insight into this issue would be greatly appreciated.



  • 3.  RE: DHCP client not accepting unicast DHCP offer

     
    Posted 11-10-2015 00:26

    Hi resplendent,

     

    DHCP works in 4 packets as below.

     

    Discover -Client to Server

    Offer - Server to Client

    Request - Client to Server

    Ack - Server to Client

     

    In your scenario we see Discover and Offer on SRX but we dont see Request from Client and thats the same reason why we state as "SELECTING".

    The 2 possible reason for this is

     

    1. the Offer from SRX is not reaching the client even though we see it on SRX ( We need to take a PCAP or tcpdump on client machine to confirm this)

    2. The offer send from SRX is not acceptable for Client, again only the client knows why. You need to check if there is any specific requirements for this client.



  • 4.  RE: DHCP client not accepting unicast DHCP offer

    Posted 11-11-2015 21:16

    Hi Suraj

     

    Thanks for the reply.

     

    After observing the packets across, it appears that the offer is not being sent by the SRX as broadcast.

     

    This is when the EFTPOS device is connected to the SRX when using dhcp-local-server:

    new config eftpos.png

     

    This is when the same EFTPOS device is connected to the router using the old dhcp server:

    old config eftpos.png

     

    This is when a laptop is connected to the router using dhcp-local-server:

    new config laptop.png

     

    Any further suggestions?

     

    Could it be that the offer is being sent as unicast instead of multicast?

    Can I force the SRX to send offers via broadcast?



  • 5.  RE: DHCP client not accepting unicast DHCP offer

    Posted 11-16-2015 21:38

    Any insight would be greatly appreciated.



  • 6.  RE: DHCP client not accepting unicast DHCP offer
    Best Answer

    Posted 11-17-2015 03:30

    Hello,

    Please try the below - I have no suitable DHCP client to test it, sorry:

     

    aarseniev@labsrx# show | compare 
    Nov 17 12:43:26
    [edit system services]
    +    dhcp-local-server {
    +        overrides {
    +            no-unicast-replies;
    +        }
    +    }
    
    [edit]
    aarseniev@labsrx# commit check 
    Nov 17 12:43:38
    configuration check succeeds

    This stanza is hidden in 12.1X46, You have to type it in full.

     

    HTH

    Thx

    Alex



  • 7.  RE: DHCP client not accepting unicast DHCP offer

    Posted 11-18-2015 19:01

    Adding the override did the trick.



  • 8.  RE: DHCP client not accepting unicast DHCP offer

    Posted 06-28-2017 04:37

    can't use this trick at

    Model: srx210he2
    JUNOS Software Release [12.1X47-D10.4]

     

    is any over way to implement it?