path-to-pig.py Verified current stable Not installed? Networking

Path To Pig.py / Exhaust Dhcp Ipv6 Addresses

Exhaust Dhcp Ipv6 Addresses

Exhaust DHCP IPv6 addresses using a specified network interface.

$
Terminal
sudo <path/to>/pig.py -6 <eth1>

When To Use

To assess the availability of IPv6 DHCP addresses under specific network conditions.

Pro Tip

Use --dry-run to preview potential IP allocations without actual requests.

Anatomy of Output

Understanding the result

Requesting DHCPv6 address from eth1... Request Status

Corresponds to the interface that the request is issued from.

Assigned IPv6 Address: 2001:db8::1 Assigned IPv6

Shows the IPv6 address assigned by the server.

DHCPv6 Lease Time: 7200 seconds Lease Time

Indicates how long the IPv6 address can be used.

Power User Variants

Optimized versions

path-to-pig.py sudo path/to/pig.py --ipv6 eth1

Basic method to exhaust DHCPv6 addresses.

path-to-pig.py sudo path/to/pig.py --retry --ipv6 eth1

Attempt retry on failed DHCPv6 requests.

Troubleshooting

Common pitfalls

Error: DHCPv6 request failed

Solution: Verify the DHCPv6 configuration and server status.

Error: Interface eth1 not found

Solution: Check that the specified interface is correct and operational.

Error: No DHCPv6 server found

Solution: Confirm that the DHCPv6 server is actively running.

Command Breakdown

What each part is doing

sudo
Base Command
The executable that performs this operation. Here it runs Path To Pig.py before the shell applies any redirect operators.
<path/to>
path to
The value supplied for path to.
-6
6| ipv6
The value supplied for 6| ipv6.
<eth1>
eth1
The value supplied for eth1.
-6
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative networking tools for the same job.