Environment: The two routers have the same hardware model and system version (OpenWrt 21.02.2). The DHCP configuration is the same. They both obtain ipv6-pd through pppoe dialing. The DHCP configuration is as follows (uci show dhcp.lan):
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.dhcpv4='server'
dhcp.lan.ra='server'
dhcp.lan.ra_flags='none'
dhcp.lan.leasetime='2h'
dhcp.lan.ra_maxinterval='300'
dhcp.lan.ra_mininterval='120'
dhcp.lan.ra_lifetime='3600'
dhcp.lan.ra_useleasetime='1'
Requirement: Modify the value of Valid Lifetime or Preferred Lifetime in the RA message
The LAN device under Router A captures ICMPv6(RA) Valid Lifetime: 7200 is the expected value
ICMPv6 Option (Prefix information : 2000:3:5587:50::/64)
Type: Prefix information (3)
Length: 4 (32 bytes)
Prefix length: 64
Flag: 0xc0, On-link flag(L), Autonomous address-configuration flag(A)
Valid Lifetime: 7200
Preferred Lifetime: 43200
Reserved
Prefix: 2000:3:5587:50::
The LAN device under Router B captures ICMPv6(RA) Valid Lifetime: 2580, which is not the expected value.
ICMPv6 Option (Prefix information : 2000:3:5122:200::/64)
Type: Prefix information (3)
Length: 4 (32 bytes)
Prefix length: 64
Flag: 0xc0, On-link flag(L), Autonomous address-configuration flag(A)
Valid Lifetime: 2580
Preferred Lifetime: 2580
Reserved
Prefix: 2000:3:5122:200::
question:
- The two routers are almost the same. Why do they have different results? How to troubleshoot the problem?
- What configuration file does odhcpd get its parameters from when running, and what configurations will affect this result?