ip4 with ipv6 settings

If none of the more specific forums is the right place to ask

ip4 with ipv6 settings

Postby Soapm » 2020-09-29 20:37

I just changed my networking FROM the system that uses /etc/network/interfaces to the system that uses /etc/systemd/network/.

I want to make sure that my server is using both ip4 and ipv6 but it's hard finding a strait up example to go by, does this look right for the network file? How would you change it for a basic ip4 and ipv6 network on a single interface adapter?

Code: Select all
[Match]
Name=enp2s0

[Network]

# Ipv4
 Address=192.168.0.1**/24
 Gateway=192.168.0.1
 DNS=8.8.8.8 8.8.4.4

#Ipv6
 Address=2601:1:b080:571:468a:5bff:fe9e:2d**/64
 Gateway=fe80::c2a0:bbff:feea:673d
 Gateway=2601:1:b080:571:c2a0:bbff:feea:673d
 DNS=2001:4860:4860::8888 2001:4860:4860::8844
User avatar
Soapm
 
Posts: 582
Joined: 2012-05-22 04:23

Return to General Questions

Who is online

Users browsing this forum: No registered users and 22 guests

fashionable