Unable to get IP from ISP (Charter)

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output.
grafik
Please edit your post accordingly. Thank you! :slight_smile:

Sorry about that and thank for the info on the preformatted text button.

Which one is the mac of the previous working router? Currently the interface is using the 6..6 and the link is UP, so I am not sure why your provider doesn't see the router connected.

The WNDR4300 prior to flashing OpenWRT for the first time and with Netgear firmware would connect with out issue. Default mac was 6..6.
On the Internet Setup pages of both the WNDR4300 with original firmware and the RAX15, there is a list of router mac options to choose from.

Router MAC Address

  • Use Default Address
  • Use Computer MAC Address
  • Use This MAC Address

"Use This MAC Address" was selected and I entered the 00..1 MAC on the WNDR4300 quit some time ago, and then again on the RAX15 I am currently using.

I have been thinking about seeing if I can access the RAX15 using cli if possible to see if I can find anything that might help.

Have you tried to remove altogether the mac and hostid from the wan interface?
Or use there the 6...6 mac?

# CONFIG 1

# uci show
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='dhcp'
network.wan.broadcast='1'
network.wan_eth0_2_dev=device
network.wan_eth0_2_dev.name='eth0.2'
network.wan_eth0_2_dev.macaddr='6c:b0:ce:e9:6b:86'
----------------------------------------------------
# CONFIG 2

# uci show
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='dhcp'
network.wan.broadcast='1'
network.wan.macaddr='6C:B0:CE:E9:6B:86'
network.wan_eth0_2_dev=device
network.wan_eth0_2_dev.name='eth0.2'
network.wan_eth0_2_dev.macaddr='6c:b0:ce:e9:6b:86'

Is one or both of these configs what you had in mind?

After looking at my notes, I see Config 1 was tried first, after the last hard reset about 6 days ago.

In Config 2:
network.wan.macaddr='6C:B0:CE:E9:6B:86' # This is the default mac (grayed out) and format that shows in the "Override MAC" window in the web interface.
Wouldn't the OS default to network.wan_eth0_2_dev.macaddr='DEFAULT MAC' if network.wan.macaddr='OVERRIDE MAC' was not configured?

I'm thinking about contacting my service provider again and have them monitor a power cycling of the modem and router. See if I can gain any information from that. I'll also see if they can tell me what data the modem and/or upstream server requires from the router to receive an IP. Just need to find the time to do it.

I want to add that I appreciate you sticking around and trying to help find a solution to this.
Thank you trendy.

The first one, without the network.wan.broadcast='1' though.

The MACs are the same, just that in the second case the option in wan interface is in uppercase letters.

Sounds like a plan.

These are the two reasons I have been leaving "Broadcast flag" enabled.

And this from the web interface:

"Use broadcast flag" "Required for certain ISPs, e.g. Charter with DOCSIS 3".
Since my ISP is Charter and I have a DOCSIS 3 modem it made sense to enable it.

However, I tried the below config twice, with a power cycle before each attempt.

# uci show network

network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='dhcp'
network.wan_eth0_2_dev=device
network.wan_eth0_2_dev.name='eth0.2'
network.wan_eth0_2_dev.macaddr='6x:xx:xx:xx:xx:x6'

Still no luck.

Contacted service provider, told tech support, I would like her to monitor the connection while I boot-up the modem and router.

Also told her, what I was looking for is information on how the connection looks when the modem boots up and what, if anything she see's from the router when it finishes booting up.

After boot-up she said modem looked good and she could see a mac from the router (we confirmed it was the correct mac) and, if I understood her correctly, the router wasn't bridging.

I also asked, what data the modem requires from the router to allow a request for an IP to go thru? She said none really, just a signal thru the coax.

At least I know the modem and router are connected and the router is sending data.

The router is not supposed to bridge. Or do you mean some other router than the 4300?

I was wondering about the router bridging comment my self when I was writing my notes.
It's possible she said modem instead of router wasn't bridging and I misheard.
And yes, it is the 4300.

It's interesting how I can't seem to get a public IP on the 4300, but I get a constant stream of service provider gateway IP's in the new routers firewall logs. All from source port 67. Three of the IP's were gateways of past public IP's I've had and one is for the current IP I have.

Short of setting it up with a static IP to get a connection and then switching it back to DHCP client, I'm starting to run out of ideas.

I didn't quite get that. Can you run a tcpdump on the wan interface?
tcpdump -i eth0.2 -evn
then try to reconnect the wan interface and wait until it captures a few packets, stop with ctrl-c and paste here.

I can understand that. It was a little bit of me thinking out loud with a little bit of frustration mixed in.
The first part was about the 4300 not getting an IP, and the rest was about the RAX15 router getting around 100 service provider xx.xx.xx.1 IP's per day in the firewall log for over a month now. Shortly after I first connected to the internet.

Now regarding tcpdump.

$ sudo tcpdump -i eth0.2 -evn
tcpdump: eth0.2: No such device exists
(SIOCGIFHWADDR: No such device)

After attempting tcpdump, I ran uci show to make sure nothing had changed and ip link to confirm eth0.2 was up. No changes and it was up.
Thought about trying it on the RAX15 to see if it would work, but I'm not sure how to get the wan interface name.

Try to restart the dhcp client only using @vgaetera's script

After looking at the script and reading the rest of the posts on that page, I saw that a package could be installed on an offline router. Found tcpdump package and how to install it. Here are the results.

root@OpenWrt:~# reset; \
> NET_IF="wan"; \
> NET_DEV="$(uci get network.${NET_IF}.ifname)"; \
> ifup "${NET_IF}"; sleep 10; \
> tcpdump -v -n -i "${NET_DEV}" udp port 67 or udp port 68 & \
> ip address show dev "${NET_DEV}"; \
> kill -SIGUSR2 "$(pidof udhcpc)"; sleep 10; \
> ip address show dev "${NET_DEV}"; \
> kill -SIGUSR1 "$(pidof udhcpc)"; sleep 10; \
> ip address show dev "${NET_DEV}"; \
> killall tcpdump
7: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 6x:xx:xx:xx:xx:x6 brd ff:ff:ff:ff:ff:ff
    inet6 fxxx::xxxx:xxxx:xxxx:xxx6/64 scope link 
       valid_lft forever preferred_lft forever
tcpdump: listening on eth0.2, link-type EN10MB (Ethernet), capture size 262144 bytes
7: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 6x:xx:xx:xx:xx:x6 brd ff:ff:ff:ff:ff:ff
    inet6 fxxx::xxxx:xxxx:xxxx:xxx6/64 scope link 
       valid_lft forever preferred_lft forever
15:55:26.961124 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x1e79ff8d, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x6xxxxxx3
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
15:55:29.964545 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x1e79ff8d, secs 3, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x6xxxxxx3
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
15:55:32.967998 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x1e79ff8d, secs 6, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x6xxxxxx3
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
15:55:35.969540 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x1e79ff8d, secs 9, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x6xxxxxx3
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
7: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 6x:xx:xx:xx:xx:x6 brd ff:ff:ff:ff:ff:ff
    inet6 fxxx::xxxx:xxxx:xxxx:xxx6/64 scope link 
       valid_lft forever preferred_lft forever

4 packets captured
4 packets received by filter
0 packets dropped by kernel

After figuring out how to get tcpdump on the router I ran it from there this time. Saw some ARP requests so let it run a little longer.
Glad I did, as most of the requests contained my public and gateway IPs. However, the last ARP request was unexpected.
I also saw a mac from upstream of my modem. Service providers DHCP server I suspect.

root@OpenWrt:~# tcpdump -i eth0.2 -evn
tcpdump: listening on eth0.2, link-type EN10MB (Ethernet), capture size 262144 bytes
16:42:13.963826 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:15.223750 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x76a73d9c, secs 298, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:15.639707 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:42:15.647808 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:16.973377 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:18.227195 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x76a73d9c, secs 301, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:21.230639 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x76a73d9c, secs 304, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:21.658404 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:42:21.666484 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:21.675396 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:28.233842 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:28.753495 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:42:40.563332 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:42:40.853415 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:42.503629 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:44.693716 00:01:5c:6e:3e:46 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request who-has <MY PUBLIC IP> tell <GATEWAY IP>, length 46
16:42:45.460641 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:48.463802 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 3, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:48.888066 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:42:48.896150 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:48.905032 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:51.467310 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 6, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:54.470758 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 9, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:55.522950 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:42:57.473741 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 12, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:42:59.453004 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:00.477181 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 15, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:03.480627 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 18, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:03.643571 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:43:05.370230 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:05.378234 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:06.483739 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 21, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:06.653313 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:43:08.373197 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:08.381219 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:08.948133 00:01:5c:6e:3e:46 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request who-has <MY PUBLIC IP> tell <GATEWAY IP>, length 46
16:43:09.487184 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 24, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:12.490629 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 27, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:14.232707 00:01:5c:6e:3e:46 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request who-has <NOT MY IP 22.xx.xx.xx OR NETWORK> tell <NOT MY GATEWAY 22.xx.xx.1 OR NETWORK>, length 46
16:43:15.232665 00:01:5c:6e:3e:46 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request who-has <NOT MY IP 22.xx.xx.xx OR NETWORK> tell <NOT MY GATEWAY 22.xx.xx.1 OR NETWORK>, length 46
16:43:15.493745 6c:b0:ce:e9:6b:86 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6c:b0:ce:e9:6b:86, length 300, xid 0x43c2fbd7, secs 30, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:15.874686 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:43:15.882774 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:15.891683 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:18.497187 6x:xx:xx:xx:xx:x6 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 6x:xx:xx:xx:xx:x6, length 300, xid 0x43c2fbd7, secs 33, Flags [none]
          Client-Ethernet-Address 6x:xx:xx:xx:xx:x6
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            MSZ Option 57, length 2: 576
            Parameter-Request Option 55, length 8: 
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
              Domain-Name, BR, NTP, Classless-Static-Route
            Vendor-Class Option 60, length 12: "udhcp 1.30.1"
            Hostname Option 12, length 7: "OpenWrt"
16:43:19.406088 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 102: (hlim 255, next-header ICMPv6 (58) payload length: 48) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 48
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
          prefix info option (3), length 32 (4): 2600:6c52:7004:200::/64, Flags [none], valid time 2592000s, pref. time 604800s
16:43:19.414136 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
16:43:19.423087 00:01:5c:6e:3e:46 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 70: (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::201:5cff:fe6e:3e46 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 16
        hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 9000s, reachable time 3600000ms, retrans timer 0ms
^C
48 packets captured
48 packets received by filter
0 packets dropped by kernel

For future reference regarding this topic, are IPv6 enteries needed in the diagnostic process? If not I can remove them to shorten the posts.

Router is sending the DHCP Discovery, but there is no DHCP Offer in return.

Not weird, you are in a big "LAN" with other clients of your ISP. Your ISP should control a little bit the broadcasts though.

Not exactly relevant, because they are IPv6, but it is interesting that you receive something from the ISP (the Router Advertisements) but not the DHCP offers.

Is there a setting or option that shows the current number of DHCP requests made in a certain time period and changing it?

I'm wondering if the MAC is getting blocked for a short period of time by the DHCP server if too many request are made in a certain time frame.

DHCP requests are made upon connection to the network (i.e. boot up, link-up, etc.) and then periodically after that if not successful (I don't know what that time period is off hand, but someone else can probably answer this). If a DHCP lease has been obtained, the client will do a DHCP request for renewal of the lease at intervals related to the original lease time. The first renewal request will happen at 50% of the lease time. If it is unsuccessful, it will try again at 87.5% of the least time. If it is still unable to get a renewal, the lease will expire and the process begins again.
Unless a user actively renews the lease so frequently as to constitute abuse of the service, it is unlikely that the MAC address is getting blocked for too many DHCP requests. However, if that is a concern, you can reach out to your ISP to ask that question.

@psherman
Thank you psherman for your reply and the information you provided.

I have been reading a lot of posts on several sites, and they mainly deal with DHCP request issues. So I had "request" on my mind when I wrote my previous post. It should have read "Discovery" instead of "request".

The WNDR4300 I'm currently troubleshooting has yet to obtain a DHCP lease. It sends DHCP Discovery but receives no offers in return.

Massages do reach the service provider but nothing useful is returned. Previous configurations tried and tcpdump results are posted above.

I now have a 5 port switch (GS305E) to go between the modem and router to help determine why no DHCP Offer is returned after DHCP Discovery is sent.

Planned configuration:
-Switch DHCP mode disabled. (Static IP needed)
-Ports 1 and 4 on default VLAN 1, mirrored to port 5 on VLAN 5.
-Modem to switch port 1. Router WAN to switch port 4. Ports 2 and 3 empty.
-Port 5 on switch to laptop (capture device) running Dumpcap. Cap file will be transferred to desktop with better resources for analysis with WireShark.
-Laptop set to static IP different than current subnets.

Planned procedure:
-Power down modem and router.
-Make relevant connections.
-Start Dumpcap.
-Power on modem. Modem bootup complete.
-Power on router. Router bootup complete.
-Continue to capture for 5 mins after router bootup completes.

Question, since I don't want the switch to get the IP intended for the router from upstream, I need to set a static IP. But I'm not sure what subnet the static IP should be a part of.
It doesn't seem like the switch IP would be relevant in this configuration?

Any suggestions on possible improvements to configuration or procedures are welcome!

Right, absolutely don't use the switch DHCP mode since it will generate requests to the cable company.

The IP of the switch is used only to configure it. So it can be anything once configured.

1 Like