三つの機能
mGREは一つのtunnel interfaceで複数相手へGRE encapsulationを行う。NHRPはtunnel側のaddressと外側NBMA addressの対応等を管理し、NHSとしてのhubへspokeが登録する。IPsecはGRE等を保護し、経路の交換はEIGRP/OSPF/BGP等で別に行う。GRE自体に暗号化はない。
GRE over IPv4はIP protocol47で、TCP/UDPのport47ではない。tunnelのinner networkと、internet/WAN側のouter pathを分ける。hubはNBMA192.0.2.1/tunnel10.0.0.1、spoke1はNBMA198.51.100.2/tunnel10.0.0.2というlabを考える。
! Hub
interface Tunnel0
ip address 10.0.0.1 255.255.255.0
ip nhrp authentication LABNHRP
ip nhrp network-id 100
ip nhrp map multicast dynamic
ip nhrp redirect
tunnel source GigabitEthernet0/0
tunnel mode gre multipoint
tunnel key 100
tunnel protection ipsec profile DMVPN-IPSEC
! Spoke1
interface Tunnel0
ip address 10.0.0.2 255.255.255.0
ip nhrp authentication LABNHRP
ip nhrp network-id 100
ip nhrp map 10.0.0.1 192.0.2.1
ip nhrp map multicast 192.0.2.1
ip nhrp nhs 10.0.0.1
ip nhrp shortcut
tunnel source GigabitEthernet0/0
tunnel mode gre multipoint
tunnel key 100
tunnel protection ipsec profile DMVPN-IPSEC
これはsingle hubのPhase3のtunnel抜粋で、事前にouter interface/address、到達性とDMVPN-IPSEC profileを構成する。spoke2も固有のtunnel/outer addressを使う。NHRP authenticationとtunnel keyはIPsecの秘密鍵やIKEの認証を代替しない。NHRP network-idはlocalのNHRP networkの識別で、VPN全体で同じ値にそろえる設計が分かりやすいが、対向との文字列一致だけをprotocolの隣接条件と誤認しない。
hubのmulticast dynamicは登録されたspokeへのmulticast複製へ、spokeのmulticast mapはhubへの送信へ関わる。unicastのNHRP mapと、routing Hello等のmulticastが配送される条件を分ける。