vultr示例网络配置 IPV6
Sample Network ConfigurationLocation: Tokyo
Main IP Address: 108.61.200.253
In most cases, you should not need to adjust these files. Instances are normally configured using DHCP. You only really need to change these files if you are trying to enable additional IPs.
Note: Changing to the examples below will cause problems if you take a snapshot of an instance and restore it. We recommend reverting back to DHCP before taking a snapshot.
CentOS / RHEL
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=108.61.200.253
NETMASK=255.255.254.0
GATEWAY=108.61.200.1
DNS1=108.61.10.10
IPV6INIT=yes
IPV6ADDR="2001:19f0:7000:88a4::64/64"
IPV6_AUTOCONF="yes"
/etc/sysconfig/network-scripts/route-eth0
169.254.0.0/16 dev eth0
Debian / Ubuntu
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 108.61.200.253
netmask 255.255.254.0
gateway 108.61.200.1
dns-nameservers 108.61.10.10
post-up ip route add 169.254.0.0/16 dev eth0
iface eth0 inet6 static
address 2001:19f0:7000:88a4::64
netmask 64
FreeBSD
/etc/rc.conf
static_routes="linklocal"
route_linklocal="-net 169.254.0.0/16 -interface vtnet0"
ifconfig_vtnet0="inet 108.61.200.253 netmask 255.255.254.0"
defaultrouter="108.61.200.1"
rtsold_enable="YES"
ipv6_activate_all_interfaces="YES"
rtsold_flags="-aF"
ifconfig_vtnet0_ipv6="inet6 2001:19f0:7000:88a4::64 prefixlen 64"
页:
[1]