How to configure static IPv6 address?

To configure a static IPv6 address on a device, the steps may vary depending on the operating system. Below are instructions for configuring a static IPv6 address on Windows, Linux, and macOS.

Windows

  1. Open Network Connections:

    • Press Win + R, type ncpa.cpl, and press Enter.
  2. Select Network Adapter:

    • Right-click on the network adapter you want to configure and select Properties.
  3. Select Internet Protocol Version 6 (TCP/IPv6):

    • In the list, find and select Internet Protocol Version 6 (TCP/IPv6), then click Properties.
  4. Configure Static IPv6 Address:

    • Select Use the following IPv6 address.
    • Enter the desired IPv6 address, subnet prefix length (e.g., 64), and default gateway.
    • Optionally, enter DNS server addresses.
  5. Save Settings:

    • Click OK to save the settings, then close the properties window.

Linux (Using Terminal)

  1. Open Terminal.

  2. Edit Network Configuration:

    • Depending on your Linux distribution, you may need to edit the network configuration file. For example, on Ubuntu, you can use:
      sudo nano /etc/netplan/01-netcfg.yaml
    • Add the following configuration (adjust the interface name and addresses accordingly):
      network:
        version: 2
        ethernets:
          eth0:
            dhcp4: no
            dhcp6: no
            addresses:
              - 2001:db8::1/64
            gateway6: 2001:db8::fffe
            nameservers:
              addresses:
                - 2001:4860:4860::8888
                - 2001:4860:4860::8844
  3. Apply Changes:

    • Save the file and apply the changes:
      sudo netplan apply

macOS

  1. Open System Preferences:

    • Click on the Apple menu and select System Preferences.
  2. Select Network:

    • Click on Network.
  3. Select Network Interface:

    • Choose the network interface (e.g., Wi-Fi or Ethernet) you want to configure.
  4. Configure IPv6:

    • Click on the Advanced button, then go to the TCP/IP tab.
    • From the Configure IPv6 dropdown, select Manually.
    • Enter the desired IPv6 address, subnet prefix length, and router address.
  5. Save Settings:

    • Click OK, then Apply to save the changes.

Verification

After configuring the static IPv6 address, you can verify the configuration:

  • Windows: Open Command Prompt and run:

    ipconfig
  • Linux: Use the command:

    ip -6 addr show
  • macOS: Use the command:

    ifconfig

This will display the configured IPv6 addresses for your network interfaces.

0 Comments

no data
Be the first to share your comment!