Display the global config. settings that apply to all IPv4 and IPv6 interfaces on the system using Netsh tool

The Windows command netsh interface ipv4 show global displays the global configuration settings for the IPv4 protocol on a system. These settings apply across all network interfaces and control various aspects of IPv4 networking, including routing, packet handling, security, and performance optimizations. Below is a detailed explanation of each detail listed in the query:


1. Default Hop Limit

  • Description: Specifies the default Time to Live (TTL) value in the IPv4 header for outgoing packets. The TTL determines the maximum number of routers (hops) a packet can traverse before being discarded, preventing infinite loops in routing.
  • Typical Value: 128 (common in Windows).
  • Significance: Controls how far packets can travel, useful for managing reachability in large networks.

2. Neighbor Cache Limit

  • Description: Defines the maximum number of entries allowed in the neighbor cache (similar to the ARP cache), which stores information about devices on the local network.
  • Purpose: The neighbor cache is used to speed up the process of translating IP addresses to MAC addresses.
  • Significance: Prevents cache overflow in networks with many devices.

3. Route Cache Limit

  • Description: Sets the maximum number of entries in the route cache, which temporarily stores routing information for recently used routes to optimize routing decisions.
  • Purpose: Balances performance and memory usage. The route cache holds recently used routes for packets, which can improve performance by avoiding the need to compute the route from scratch for every packet.
  • Significance: Improves routing efficiency in networks with frequent route changes.

4. Reassembly Limit

  • Description: Specifies the maximum number of fragments that can be held in the reassembly buffer for reconstructing fragmented IPv4 packets.
  • Purpose: Prevents excessive memory consumption during reassembly.
  • Significance: Manages resources in networks with heavy fragmentation.

5. ICMP Redirects

  • Description: Controls whether the system accepts ICMP Redirect messages from routers, which suggest better routes to a destination. ICMP redirects can instruct the host to use a more efficient route for packets. Depending on the configuration, these messages can be either accepted or ignored for security or performance reasons.
  • Options: Enabled or Disabled.
  • Significance: Enabling improves routing efficiency; disabling enhances security by preventing route manipulation.

6. Source Routing Behavior

  • Description: This parameter controls whether the system honors source routing information contained in IPv4 packets. Source routing allows the sender to specify the route a packet should take. Disabling or ignoring source routing enhances security by preventing potentially malicious route manipulation.
  • Options: Typically “Drop” (discard) or “Forward” (honor the route).
  • Significance: Disabling source routing enhances security by preventing path control by external entities.

7. Task Offload

  • Description: Indicates whether networking tasks (e.g., checksum calculation, TCP segmentation) are offloaded to the network interface card (NIC) to reduce CPU load.
  • Options: Enabled or Disabled.
  • Significance: Improves performance on systems with high network traffic.

8. Dhcp Media Sense

  • Description: Media Sense is a feature that monitors the physical network connection. The DHCP Media Sense setting determines how quickly the system reacts to changes in the network connection (for example, when a cable is unplugged). This can affect DHCP lease renewal and reconnection behaviors.
  • Options: Enabled or Disabled.
  • Significance: Ensures proper IP address management during network state changes.

9. Media Sense Logging

  • Description: When enabled, this setting causes the system to log events related to changes in the network connection status (detected by Media Sense).
  • Options: Enabled or Disabled.
  • Significance: It is useful for diagnosing network connectivity issues.

10. MLD Level

  • Description: Although primarily applicable to IPv6 (Multicast Listener Discovery), on IPv4 systems, this setting may still indicate the level or extent of multicast handling configured, helping to control multicast traffic behavior.
  • Options: None, Send Only, or Full.
  • Significance: Relevant for multicast traffic management.

11. MLD Version

  • Description: Similar to the MLD Level, this setting identifies which version of multicast listener discovery (if applicable) is recognized by the system. This is more relevant for multicast configuration and compatibility in mixed IP environments.
  • Options: Version 1 or Version 2.
  • Significance: Ensures compatibility with multicast applications.

12. Multicast Forwarding

  • Description: Controls whether the system forwards multicast packets between interfaces, acting as a multicast router. Enabling multicast forwarding can be useful for bridging multicast traffic in certain network topologies.
  • Options: Enabled or Disabled.
  • Significance: Essential for multicast traffic distribution across subnets.

13. Group Forwarded Fragments

  • Description: This setting involves how the system handles fragments of multicast packets. Group Forwarded Fragments control whether fragments of a multicast transmission are forwarded as a whole or individually, impacting reassembly and delivery efficiency.
  • Options: Enabled or Disabled.
  • Significance: Ensures proper handling of fragmented multicast traffic.

14. Randomize Identifiers

  • Description: When this setting is enabled, the system randomizes the TCP sequence numbers or the IP packet identification fields.
  • Options: Enabled or Disabled.
  • Significance: This can enhance security and reduce the predictability of packet identifiers, thereby mitigating some types of network attacks.

15. Address Mask Reply

  • Description: Specifies whether the system responds to ICMP Address Mask Request messages to reveal the subnet mask.
  • Options: Enabled or Disabled.
  • Significance: Disabling enhances security by limiting network reconnaissance.

16. Minimum Mtu

  • Description: The Minimum MTU (Maximum Transmission Unit) specifies the smallest packet size (excluding IP headers) that is acceptable for transmission. This ensures that all packets are above a size threshold that allows proper handling and prevents performance issues caused by overly small packets.
  • Typical Value: 576 bytes (IPv4 minimum).
  • Significance: Ensures compatibility with networks having smaller MTUs.

17. Flow Label

  • Description: Although more common in IPv6, the flow label field in IPv4 (if utilized) can be used to identify and manage packet flows. It may help in traffic shaping or quality of service (QoS) decisions.
  • Significance: Helps prioritize or manage traffic based on flow characteristics.

18. Loopback Large Mtu

  • Description: This setting defines the maximum transmission unit for loopback interfaces(larger than the standard 1500 bytes), which are used to send network traffic from a host back to itself. A larger MTU on the loopback interface can improve performance for local communications and testing.
  • Options: Enabled or Disabled.
  • Significance: Optimizes performance for local communications.

19. Loopback Worker Count

  • Description: This parameter sets the number of worker threads allocated to processing loopback traffic. Adjusting the count can affect the efficiency of handling internal communications within the system.
  • Significance: Improves efficiency of local network operations.

20. Loopback Execution Mode

  • Description: Determines how loopback traffic is processed (e.g., kernel mode or user mode).
  • Options: Inline, Out of Band, etc.
  • Significance: Affects performance and resource usage for local traffic.

21. Source Based ECMP

  • Description: ECMP(Equal-Cost Multi-Path) allows the system to balance outbound traffic across multiple routes that have equal cost. Enabling source-based ECMP means the routing decision can be influenced by the source address of the packet, providing more granular load balancing.
  • Options: Enabled or Disabled.
  • Significance: Useful for load balancing while maintaining session persistence.

22. Reassembly Out Of Order Limit

  • Description: Limits the number of out-of-order fragments accepted during packet reassembly.
  • Significance: It helps define system behavior when fragments arrive out of sequence, balancing performance with robustness. Protects against denial-of-service attacks exploiting reassembly buffers.

23. Multiple ARP Announcements

  • Description: This parameter dictates whether the system will send multiple ARP announcements to broadcast its presence on the network.
  • Options: Enabled or Disabled.
  • Significance: ending multiple announcements can improve the accuracy of ARP caches on other devices, especially in networks where ARP entries might otherwise expire or be overwritten. Quickly updates neighbor caches in dynamic environments.

24. SLAAC Privacy Level

  • Description: Although typically associated with IPv6 Stateless Address Autoconfiguration (SLAAC), when referenced in a global IPv4 context, this parameter may indicate policies or settings that mirror privacy-enhancing practices—such as randomizing certain identifiers—adopted from IPv6 configurations.
  • Options: None, Temporary, etc.
  • Significance: Enhances privacy by preventing IP-based tracking.

25. SLAAC DAD Attempts

  • Description: Specifies the number of Duplicate Address Detection (DAD) attempts, an IPv6 feature that may relate to IPv4 address conflict checks. DAD (Duplicate Address Detection) ensures that an IP address is not already in use on the network before assigning it.
  • Significance: Ensures unique IP addresses on the network. This parameter configures the number of DAD attempts to perform, helping prevent IP address conflicts.

26. Route Policies

  • Description: Route policies are global rules that govern how routes are selected or preferred by the routing engine. They may include metrics or conditions used to prioritize one route over another in the case of multiple potential paths.
  • Options: Enabled or Disabled.
  • Significance: Supports complex routing based on specific criteria.

27. Recursive Reassembly

  • Description: Controls reassembly of fragments containing fragments, though more relevant to IPv6. This setting determines whether the system can perform recursive reassembly of fragmented packets. Recursive reassembly can handle scenarios where fragments are nested or where multiple layers of reassembly are needed, but it may also impact performance if not managed carefully.
  • Options: Enabled or Disabled.
  • Significance: Manages nested fragment handling, if applicable.

28. ICMP Jumbograms

  • Description: This parameter controls whether the system supports ICMP jumbograms—ICMP messages that permit the use of IPv4 packets with payload sizes larger than the standard maximum MTU. Enabling this can be beneficial in high-bandwidth networks that need to handle very large packets.
  • Options: Enabled or Disabled.
  • Significance: Relevant for networks requiring large packet transmission.

Summary

The netsh interface ipv4 show global command provides a detailed view of IPv4 settings that govern routing, packet reassembly, security, and performance across all network interfaces. Each of these settings plays a role in shaping the behavior of IPv4 traffic on your Windows system—ranging from how packets are routed and reassembled to security measures and performance optimizations. Understanding these parameters is crucial for network administrators and power users who wish to fine-tune network performance, troubleshoot issues, or ensure that the system’s IPv4 networking stack is configured according to organizational or personal requirements.


The command netsh interface ipv6 show global displays the global IPv6 configuration settings that determine how the operating system handles IPv6 traffic. These settings affect packet processing, performance optimizations, security measures, and overall networking behavior for IPv6. Below is a detailed explanation of each parameter typically shown by this command:

Detailed Explanation of Global IPv6 Settings:

  • Default Hop Limit
    Specifies the initial hop limit (similar to the TTL in IPv4) that is applied to outgoing IPv6 packets. This value limits the number of router hops a packet can traverse before being discarded, thus preventing routing loops.
  • Neighbor Cache Limit
    Sets the maximum number of entries in the neighbor cache. The neighbor cache is used to store mappings between IPv6 addresses and link-layer addresses discovered via Neighbor Discovery Protocol (NDP), improving resolution speed for subsequent communications.
  • Route Cache Limit
    Defines the maximum number of route cache entries maintained by the system. This cache holds recently used routes, which can accelerate routing decisions without needing to recompute the route for every packet.
  • Reassembly Limit
    Specifies the maximum number of fragmented IPv6 packets that can be reassembled at the same time. IPv6 packets that are fragmented during transmission must be reassembled before they can be processed by the upper layers, and this limit helps manage system resources.
  • ICMP Redirects
    Determines whether the system processes ICMP redirect messages. In IPv6, ICMP redirects can inform a host of a more efficient route to a destination. Enabling them can improve routing efficiency, whereas disabling them can be a security precaution.
  • Source Routing Behavior
    Controls whether the system honors source routing information contained in IPv6 headers. Source routing allows a sender to list a specific route for packet traversal; however, processing such information may be disabled for security reasons.
  • Task Offload
    Indicates if certain IPv6 processing tasks (such as checksum computation or segmentation) are offloaded from the CPU to the network adapter hardware. Offloading can improve performance by reducing CPU overhead.
  • Dhcp Media Sense
    Monitors the physical state of the network connection. With DHCP Media Sense enabled, the system can detect when the link goes down (or comes back up) and adjust its network behavior accordingly, such as by attempting to renew DHCP leases.
  • Media Sense Logging
    When enabled, the system logs events related to changes in the network’s media state (e.g., loss or restoration of network connectivity). These logs can aid troubleshooting by providing insight into connectivity issues.
  • MLD Level
    Configures the extent to which the system handles Multicast Listener Discovery (MLD) messages. MLD is the IPv6 equivalent of IGMP in IPv4, and the level setting determines the depth or aggressiveness of multicast listener management. This setting defines the level of MLD support—e.g., “None,” “Send Only,” or “Full”—indicating how the system participates in multicast operations.
  • MLD Version
    Indicates which version of the MLD protocol is supported or preferred by the system. Different versions might offer enhancements or improved compatibility in multicast operations. This indicates the MLD version in use (MLDv1 or MLDv2). MLDv2 supports advanced features like source-specific multicast, improving multicast traffic control.
  • Multicast Forwarding
    Controls whether multicast IPv6 packets are forwarded between different network interfaces. Enabling this can be useful in scenarios where multicast traffic needs to be routed across network segments.
  • Group Forwarded Fragments
    Determines how fragments of multicast IPv6 packets are handled. This setting affects whether the system forwards fragments as groups or individually, impacting reassembly and performance.
  • Randomize Identifiers
    When enabled, certain packet identification values (or flow labels) are randomized to reduce the predictability of packets. This can enhance security and help mitigate certain types of network attacks.
  • Address Mask Reply
    Although traditionally more prominent in IPv4 (where it responds with the subnet mask), in an IPv6 context this parameter may influence responses in scenarios where similar information is expected, ensuring proper network configuration discovery.
  • Minimum MTU
    Sets the smallest acceptable Maximum Transmission Unit (MTU) for IPv6 packets. Ensuring packets are above a certain size can prevent performance issues and avoid fragmentation under normal circumstances. IPv6 requires a minimum MTU of 1280 bytes, and this ensures compatibility by preventing smaller MTUs.
  • Flow Label
    The IPv6 flow label field is used to identify and group packets belonging to the same flow. This parameter may define default handling or settings related to flow labels, which can assist in traffic management and Quality of Service (QoS) decisions.
  • Loopback Large MTU
    Specifies the maximum MTU for the loopback interface, which is used for local inter-process communication. A higher MTU on loopback can improve performance when sending large amounts of data within the same host.
  • Loopback Worker Count
    Determines the number of processing threads allocated for managing loopback traffic. Adjusting this count can affect the efficiency of internal communications.
  • Loopback Execution Mode
    Configures how the loopback interface processes packets—whether synchronously or asynchronously. The chosen mode can influence processing speed and resource utilization for local data transfers.
  • Source Based ECMP
    Enables Equal-Cost Multi-Path (ECMP) routing decisions based on the source address of packets. This feature allows the distribution of outbound IPv6 traffic across multiple routes that have equivalent costs, improving load balancing and redundancy.
  • Reassembly Out Of Order Limit
    Sets the tolerance for out-of-order arrival of IPv6 fragments during reassembly. This limit ensures that the system can effectively reassemble fragmented packets even if some fragments arrive in a non-sequential order.
  • Multiple ARP Announcements
    In the IPv6 context, while ARP (Address Resolution Protocol) is not used, similar concepts apply via Neighbor Discovery. This setting might reflect how frequently or redundantly neighbor advertisements are sent to maintain accurate neighbor caches across the network.
  • SLAAC Privacy Level
    Configures the degree of privacy provided by the Stateless Address Autoconfiguration (SLAAC) process. Privacy extensions for SLAAC can randomize the interface identifier portion of an IPv6 address to prevent tracking of a device’s network activity.
  • SLAAC DAD Attempts
    Determines the number of Duplicate Address Detection (DAD) attempts performed during SLAAC. DAD ensures that an autoconfigured address is unique on the network, preventing address conflicts.
  • Route Policies
    Global routing policies specify criteria used by the IPv6 routing engine to select preferred routes. These policies can influence routing decisions, especially in environments with multiple available paths.
  • Recursive Reassembly
    Specifies whether the system supports recursive reassembly of fragmented IPv6 packets. This capability is important when dealing with layers of fragmentation, ensuring that the packet is fully reconstructed before processing.
  • ICMP Jumbograms
    Enables support for ICMP jumbograms—messages that allow the use of IPv6 packets with payloads larger than the standard maximum MTU. This can be beneficial in high-bandwidth environments where large data transfers are common.

The Default Hop Limit in IPv6 (or Time to Live, TTL, in IPv4) specifies the maximum number of routers (hops) an IP packet can traverse before being discarded. This prevents packets from looping indefinitely in a network due to routing errors. The optimal value for the Default Hop Limit depends on the network environment, use case, and specific requirements. Below, I’ll explain the considerations for determining the optimal value, provide typical defaults, and offer guidance for different scenarios.

Default Hop Limit in Context

  • Purpose: The Hop Limit field in the IPv6 header (or TTL in IPv4) is decremented by 1 each time a packet passes through a router. If the Hop Limit reaches 0, the packet is discarded, and an ICMPv6 “Time Exceeded” message (or ICMP “TTL Expired” in IPv4) is sent to the sender.
  • Windows Default: In Windows, the default Hop Limit for IPv6 (and TTL for IPv4) is typically 128. This can be viewed using the command netsh interface ipv6 show global (or netsh interface ipv4 show global for IPv4).
  • Other Systems:
    • Linux typically uses 64 for IPv6 and IPv4.
    • Older systems or specific devices might use values like 32 or 255.
    • The maximum possible value is 255, as the Hop Limit/TTL field is an 8-bit integer.

Home Network: A Hop Limit of 64 is optimal, as packets rarely need to traverse more than a few hops (e.g., modem to ISP). This reduces exposure to external networks.

Setting the Hop Limit

To view the current Default Hop Limit: netsh interface ipv6 show global

Look for the “Default Hop Limit” field in the output.

  1. To set a new value (requires administrative privileges) IPv6 network interfaces: netsh interface ipv6 set global defaultcurhoplimit=64
  2. To set a new value (requires administrative privileges) IPv4 network interfaces: netsh interface ipv4 set global defaultcurhoplimit=64

Replace 64 with your desired value (1–255). Verify the change by running netsh interface ipv6 show global again.

Additional Notes

  • IPv4 vs. IPv6: The considerations for IPv6 Hop Limit are similar to IPv4 TTL, but IPv6 networks often involve more complex routing due to global addressing. The default of 128 in Windows is generally sufficient for both protocols.
  • Impact of Low Values: Setting a Hop Limit too low (e.g., 10) can cause packets to be discarded before reaching their destination, leading to connectivity issues and increased ICMP traffic.
  • Impact of High Values: A Hop Limit of 255 maximizes reachability but may allow packets to persist longer in misconfigured networks, potentially aiding attackers in certain scenarios.
  • Standards Compliance: The IPv6 specification (RFC 8200) does not mandate a specific Hop Limit but recommends values that accommodate typical internet paths. Windows’ default of 128 aligns with common practices.