Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

[Installation] Assign static IPv6 as well as static IPv4 on same NIC

$
0
0
Hi,

It is the first attempt to use IPv6 on Debian 12 for a PowerDNS server. I got a static IPv6 address from my hosting provider as well as a static IPv4 address. They configure this on DHCP with a reservation, which I don't like, so I want to properly assign it as static in the interfaces config.

The questions are:
- is this the config below correct way to do it?
- I did not assign a gateway to it as I suppose my IPv4 address is the "primary" address. Or should I?

This is how my config looks like:

Code:

# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).source /etc/network/interfaces.d/*# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceallow-hotplug ens6iface ens6 inet static        address xxx.xxx.xxx.93/32        gateway xxx.xxx.xxx.1        # dns-* options are implemented by the resolvconf package, if installed        dns-nameservers xxx.xxx.xxx.16 xxx.xxx.xxx.17        dns-search **********.netiface ens6 inet6 static        address ****:****:***:6600::1/128        dns-nameservers ****:****:****:53:72ec::1 ****:****:****:53:72ec::2        dns-search **********.net

Statistics: Posted by WiVM — 2023-12-17 11:24 — Replies 1 — Views 100



Viewing all articles
Browse latest Browse all 3423

Trending Articles