Skip to content

nspeed-app/testdhcpv6pd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testdhcpv6pd

Sends a DHCPv6-PD solicit message and displays the response (no request is done)

usage

testdhcpv6pd [options] [interface name] or [interface index]

Available options:
  -a string
        anonymize ip addresses (format = list word indexes to show) (default "12345678")
  -dll string
        specify type 3 DUID-LL using the provided mac address ( : or - separated digits)
  -dllt string
        specify type 1 DUID-LLT using the provided mac address ( : or - separated digits)
  -dlltt uint
        specify the Time field for DUID-LLT
  -duu string
        specify type 4 DUID-UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
  -p value
        ask for a specific prefix and/or length (repeatable, default is one prefix of ::/64)
  -s    dont print debug messages
  -test
        dry-run only,  print the solicit paquet, nothing is send on the network
  -v    display version

Without argument, testdhcpv6pd will display the available interfaces

Use -s to suppress packet debugging

Use -a format to anonymize the prefix where format is a list of indexes. Each index, from 1 to 8, is the nibble (field) number of the address to display (1111:2222:3333:4444:5555:6666:7777:8888). Non displayed parts will be replaced by xxxx. For instance -a 18 only displays the first and last part of the address. Likewise, -a 14 displays 2a01:xxxx:xxxx:1234::/64 instead of 2a01:341c:325d:1234::/64

Use -p ::/60 to request a /60 prefix or even -p 2a01:xxxx:xxxx:xxxx::/64 to request a specific prefix. Can be repeated. The values used for the iaid are 1, 2, etc

Other options allow to change the DUID.

notes

Not tested on *bsd, plan9

Linux systems require at least cap_net_bind_service capability to bind to port 546 (see man 7 capabilities) or just use sudo

Darwin/MacOS: use sudo

About

test DHCPv6 prefix delegation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •