设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 3325|回复: 1

vultr示例网络配置 IPV6

[复制链接]
 成长值: 30

签到天数: 4504 天

[LV.Master]伴坛终老

发表于 2015/1/15 08:41 | 显示全部楼层 |阅读模式 | Google Chrome 40.0.2209.0| Windows 8.1
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
Sample Network Configuration
Location:        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"
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

飞翔的脚趾 该用户已被删除
发表于 2015/1/15 08:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/5/4 10:45 , Processed in 0.135171 second(s), 26 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表