龙空技术网

Centos配置IPV6

妥妥滴IT工具人 107

前言:

如今你们对“usbipcentos”大致比较珍视,看官们都想要知道一些“usbipcentos”的相关内容。那么小编也在网摘上汇集了一些关于“usbipcentos””的相关资讯,希望同学们能喜欢,同学们快快来了解一下吧!

Centos配置IPV6

1、配置network文件,开启ipv6,并配置ipv6的网关

vi /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=yes

HOSTNAME=localhost

IPV6_DEFAULTGW=2000::1/64

Ps:IPV6_DEFAULTGW配置IPV6的网关

2、在modprobe.conf增加options ipv6 disable=0行

vi /etc/modprobe.conf

alias scsi_hostadapter mptbase

alias scsi_hostadapter1 mptspi

alias scsi_hostadapter2 ata_piix

alias scsi_hostadapter3 usb-storage

alias eth0 vmxnet

options ipv6 disable=0

3、配置IPV6的地址

ifconfig eth0 inet6 add 2000::172:16:20:234/64 //配置地址

route -A inet6 add default gw 2000::1 dev eth0 //配置网关

4、配置DNS

vi /etc/resolv.conf

nameserver 2000::172:16:20:18

search localdomain

ps:dns根据实际配置

5、为了让ipv6重启后也生效还需做如下配置

vi /etc/sysconfig/network-scripts/ifcfg-eth0

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=none

HWADDR=00:0c:29:5a:8d:f2

NETMASK=255.255.255.0

IPADDR=172.16.20.234

GATEWAY=172.16.20.254

TYPE=Ethernet

USERCTL=no

IPV6INIT=yes

IPV6ADDR=2000::172:16:20:236/64

PEERDNS=yes

标签: #usbipcentos