Code: Select all
> /ipv6/dhcp-client/print detail
Flags: D - dynamic; X - disabled, I - invalid
0 interface=ether1-gateway status=searching... duid="..." dhcp-server-v6=fe80::201:5cff:fe6e:1246
request=address,prefix add-default-route=no use-peer-dns=no dhcp-options="" pool-name="global" pool-prefix-length=64
prefix-hint=::/48 script="" dhcp-options=""
With a packet sniffer I can see that RouterOS tries to solicit a server and that upstream sends an advertisement in reply:
Code: Select all
No. Time Source Destination Protocol Length Info
31449 1445.232227 fe80::... ff02::1:2 DHCPv6 198 Solicit XID: 0x6c6fd5 CID: ...
DHCPv6
Message type: Solicit (1)
Transaction ID: 0x6c6fd5
Client Identifier
Option: Client Identifier (1)
Length: 10
DUID: ...
DUID Type: link-layer address (3)
Hardware type: Ethernet (1)
Link-layer address: ...
Identity Association for Non-temporary Address
Option: Identity Association for Non-temporary Address (3)
Length: 12
IAID: 00000001
T1: 1800
T2: 2880
Elapsed time
Option: Elapsed time (8)
Length: 2
Elapsed time: 311640ms
Rapid Commit
Option: Rapid Commit (14)
Length: 0
Identity Association for Prefix Delegation
Option: Identity Association for Prefix Delegation (25)
Length: 41
IAID: 00000001
T1: 1800
T2: 2880
IA Prefix
Option: IA Prefix (26)
Length: 25
Preferred lifetime: 2880
Valid lifetime: 3600
Prefix length: 48
Prefix address: :: (::)
No. Time Source Destination Protocol Length Info
31450 1445.260668 2001:558:4000:114::10 fe80::... DHCPv6 234 Advertise XID: 0x6c6fd5 CID: ... IAA: 2001:558:6045:cc:81fa:a299:4c3e:f1b7
DHCPv6
Message type: Advertise (2)
Transaction ID: 0x6c6fd5
Client Identifier
Option: Client Identifier (1)
Length: 10
DUID: ...
DUID Type: link-layer address (3)
Hardware type: Ethernet (1)
Link-layer address: ...
Server Identifier
Option: Server Identifier (2)
Length: 14
DUID: 0001000115cad37f842b2bfc70d5
DUID Type: link-layer address plus time (1)
Hardware type: Ethernet (1)
DUID Time: Aug 2, 2011 08:25:51.000000000 PDT
Link-layer address: 84:2b:2b:fc:70:d5
Identity Association for Non-temporary Address
Option: Identity Association for Non-temporary Address (3)
Length: 40
IAID: 00000001
T1: 1800
T2: 2880
IA Address
Option: IA Address (5)
Length: 24
IPv6 address: 2001:558:...
Preferred lifetime: 3600
Valid lifetime: 3600
Identity Association for Prefix Delegation
Option: Identity Association for Prefix Delegation (25)
Length: 41
IAID: 00000001
T1: 1800
T2: 2880
IA Prefix
Option: IA Prefix (26)
Length: 25
Preferred lifetime: 3600
Valid lifetime: 3600
Prefix length: 60
Prefix address: 2601:645:...
However, RouterOS's log shows the solicitation only but not the reply:
Code: Select all
16:14:32 dhcp,debug,packet send ether1-gateway -> ff02::1:2%8
16:14:32 dhcp,debug,packet type: solicit
16:14:32 dhcp,debug,packet transaction-id: 6c6fd5
16:14:32 dhcp,debug,packet -> clientid: 00030001 e48d8cea 7f9c
16:14:32 dhcp,debug,packet -> ia_na:
16:14:32 dhcp,debug,packet t1: 1800
16:14:32 dhcp,debug,packet t2: 2880
16:14:32 dhcp,debug,packet id: 0x1
16:14:32 dhcp,debug,packet -> elapsed_time: 250
16:14:32 dhcp,debug,packet -> rapid_commit: [empty]
16:14:32 dhcp,debug,packet -> ia_pd:
16:14:32 dhcp,debug,packet t1: 1800
16:14:32 dhcp,debug,packet t2: 2880
16:14:32 dhcp,debug,packet id: 0x1
16:14:32 dhcp,debug,packet -> ia_prefix:
16:14:32 dhcp,debug,packet prefix: ::/48
16:14:32 dhcp,debug,packet valid time: 3600
16:14:32 dhcp,debug,packet pref. time: 2880
Note that DHCPv6 client clings to fe80::201:5cff:fe6e:1246 which was indeed an address of the upstream router previously. Also note that the advertisement is sent using GUA instead of link-local.
Could it be that RouterOS ignores the reply because of a different scope? Is this a valid behavior?