欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Centos7下IPV6有狀態(tài)DHCPV6配置-創(chuàng)新互聯(lián)

yum源安裝kea

成都創(chuàng)新互聯(lián)公司-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價比黃石網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式黃石網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋黃石地區(qū)。費用合理售后完善,十余年實體公司更值得信賴。

yum install epel-release

yum install kea

DEMON

ps aux| grep kea

rpm -qa kea

查看dhcpv6默認配置

cat /etc/kea/kea.conf

啟動kea-dhcpv6并查看kea啟動過程

systemctl start kea-dhcp6

systemctl status kea-dhcp6

systemctl -l status kea-dhcp6

通過tcpdump查看服務(wù)器數(shù)據(jù)包交互過程

tcpdump -i eth0 -w dhcp6.pcap

關(guān)閉防火墻

systemctl stop firewalld.service

注意:必須要關(guān)閉防火墻否則造成dhcpv6分配地址無法下發(fā)。

用到的文件:

/var/lib/kea/kea-leases6.csv  默認情況下存放ipv6地址以及終端的設(shè)備信息,可查看到域賬號mac地址等信息。

/var/log/kea-dhcp6.log  我開的debug模式??刹榭磀hcp6運行狀態(tài)的日志。

Centos 7 修改dns

 修改/etc/NetworkManager/NetworkManager.conf

 [main]

plugins=ifcfg-rh

dns=none

手工修改 /etc/resolv.conf

nameserver 114.114.114.114

nameserver 8.8.8.8

服務(wù)器網(wǎng)卡靜態(tài)ipv6配置:

[root@localhost kea]# vi /etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE=Ethernet

BOOTPROTO=static

DEFROUTE=yes

PEERDNS=yes

PEERROUTES=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=no

IPV6_DEFROUTE=yes

IPV6_PEERDNS=yes

IPV6_PEERROUTES=yes

IPV6_FAILURE_FATAL=no

NAME=eno16777736

UUID=03b35ca7-4678-48ca-ab46-5782367cd56a

DEVICE=eno16777736

ONBOOT=yes

IPADDR=X.X.X.X

GATEWAY=X.X.X.X

NETMASK=X.X.X.X

IPVADDR=2001:da8:XXXX:XXXX:24::125

IPV6_DEFAULTGW=2001:da8:XXXX:XXXX:24::1

IPV6ADDR=2001:da8:XXXX:XXXX:24::125/80

kea-dhcpv6 配置:

{

"Dhcp6":

{

# Add names of interfaces to listen on.

 "interfaces-config": {

  "interfaces": ["eno16777736/2001:da8:XXXX:XXXX:24:aefd:ddb0:7d02"]

 },

 "option-data": [{"name": "unicast","data": "2001:da8:XXXX:XXXX:24:aefd:ddb0:7d02"} ],

# Use Memfile lease database backend to store leases in a CSV file.

# Setup reclamation of the expired leases and leases affinity.

# Expired leases will be reclaimed every 10 seconds. Every 25

# seconds reclaimed leases, which have expired more than 3600

# seconds ago, will be removed. The limits for leases reclamation

# are 100 leases or 250 ms for a single cycle. A warning message

# will be logged if there are still expired leases in the

# database after 5 consecutive reclamation cycles.

#  "expired-leases-processing": {

#   "reclaim-timer-wait-time": 10,

#   "flush-reclaimed-timer-wait-time": 25,

#   "hold-reclaimed-time": 3600,

#   "max-reclaim-leases": 100,

#   "max-reclaim-time": 250,

#   "unwarned-reclaim-cycles": 5

#  },

# Addresses will be assigned with preferred and valid lifetimes

# being 3000 and 4000, respectively. Client is told to start

# renewing after 1000 seconds. If the server does not respond

# after 2000 seconds since the lease was granted, client is supposed

# to start REBIND procedure (emergency renewal that allows switching

# to a different server).

 "preferred-lifetime": 3000,

 "valid-lifetime": 4000,

 "renew-timer": 1000,

 "rebind-timer": 2000,

# The following list defines subnets. Uncomment to enable them.

 "subnet6": [

 {   "subnet": "2001:da8:XXXX:XXXX:25::/80",

    "pools": [ { "pool": "2001:da8:XXXX:XXXX:25::/80" } ],

    "interface-id":"vlan25"

},

 {   "subnet": "2001:da8:XXXX:XXXX:26::/80",

    "pools": [ { "pool": "2001:da8:XXXX:XXXX:26::/80" } ],

    "interface-id":"vlan26"

 },

#  {   "subnet": "2001:db8:3::/64",

#    "pools": [ { "pool": "2001:db8:3::/80" } ] },

#  {   "subnet": "2001:db8:4::/64",

#    "pools": [ { "pool": "2001:db8:4::/80" } ] }

  ]

},

# DHCP DDNS configuration starts here.

# Logging configuration starts here. It tells Kea servers to store

# all log messages (on severity INFO or more) in a file.

# debuglevel variable is used on DEBUG level only.

"Logging":

{

 "loggers": [

  {

   "name": "kea-dhcp4",

   "output_options": [

     {

      "output": "/var/log/kea-dhcp4.log"

     }

   ],

   "severity": "INFO",

   "debuglevel": 0

  },

  {

   "name": "kea-dhcp6",

   "output_options": [

     {

      "output": "/var/log/kea-dhcp6.log"

     }

   ],

   "severity": "DEBUG",   /日志開啟到debug級別,可以查看分配的地址信息。

   "debuglevel": 99

  },

  {

   "name": "kea-dhcp-ddns",

   "output_options": [

     {

      "output": "/var/log/kea-ddns.log"

     }

   ],

   "severity": "INFO",

   "debuglevel": 0

  }

 ]

}

}

如果自己網(wǎng)段內(nèi)需要dhcpv6服務(wù) 需開通以下:

[root@localhost kea]# cat /etc/kea/kea.conf

# This is a basic configuration for the Kea DHCPv4 and DHCPv6 servers.

# Subnet declarations are commented out and no interfaces are listed.

# Therefore, the servers will not listen or respond to any queries.

# The basic configuration must be extended to specify interfaces on

# which the servers should listen. Also, subnets and options must be

# declared.

{

# DHCPv4 configuration starts here.

#"Dhcp4":

#{

# Add names of interfaces to listen on.

#  "interfaces-config": {

#   "interfaces": [ ]

#  },

# Use Memfile lease database backend to store leases in a CSV file.

#  "lease-database": {

#  "type": "memfile"

# },

# Setup reclamation of the expired leases and leases affinity.

# Expired leases will be reclaimed every 10 seconds. Every 25

# seconds reclaimed leases, which have expired more than 3600

# seconds ago, will be removed. The limits for leases reclamation

# are 100 leases or 250 ms for a single cycle. A warning message

# will be logged if there are still expired leases in the

# database after 5 consecutive reclamation cycles.

#  "expired-leases-processing": {

#   "reclaim-timer-wait-time": 10,

#   "flush-reclaimed-timer-wait-time": 25,

#   "hold-reclaimed-time": 3600,

#   "max-reclaim-leases": 100,

#   "max-reclaim-time": 250,

#   "unwarned-reclaim-cycles": 5

#  },

# Global (inherited by all subnets) lease lifetime is mandatory parameter.

#  "valid-lifetime": 4000,

# Below an example of the simple subnet declaration. Uncomment to

# enable it. This is a list, denoted with [ ], of structure, denoted

# with { }. Each structure describes a single subnet and may have

# several parameters. One of those parameters is "pools" that is

# also a list of structures.

#  "subnet4": [

#  {   "subnet": "192.0.2.0/24",

#    "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ] }

#  ]

#},

# DHCPv6 configuration starts here.

"Dhcp6":

{

# Add names of interfaces to listen on.

 "interfaces-config": {

  "interfaces": ["eno16777736/2001:da8:XXXX:XXXX:24::125"]

 },

 "option-data": [{"name": "unicast","data": "2001:da8:XXXX:XXXX:24::125"} ],

# Use Memfile lease database backend to store leases in a CSV file.

# Setup reclamation of the expired leases and leases affinity.

# Expired leases will be reclaimed every 10 seconds. Every 25

# seconds reclaimed leases, which have expired more than 3600

# seconds ago, will be removed. The limits for leases reclamation

# are 100 leases or 250 ms for a single cycle. A warning message

# will be logged if there are still expired leases in the

# database after 5 consecutive reclamation cycles.

#  "expired-leases-processing": {

#   "reclaim-timer-wait-time": 10,

#   "flush-reclaimed-timer-wait-time": 25,

#   "hold-reclaimed-time": 3600,

#   "max-reclaim-leases": 100,

#   "max-reclaim-time": 250,

#   "unwarned-reclaim-cycles": 5

#  },

# Addresses will be assigned with preferred and valid lifetimes

# being 3000 and 4000, respectively. Client is told to start

# renewing after 1000 seconds. If the server does not respond

# after 2000 seconds since the lease was granted, client is supposed

# to start REBIND procedure (emergency renewal that allows switching

# to a different server).

 "preferred-lifetime": 3000,

 "valid-lifetime": 4000,

 "renew-timer": 1000,

 "rebind-timer": 2000,

# The following list defines subnets. Uncomment to enable them.

 "subnet6": [

 {   "subnet": "2001:da8:XXXX:XXXX:25::/80",

    "pools": [ { "pool": "2001:da8:XXXX:XXXX:25::/80" } ],

    "interface-id":"vlan25"

},

 {   "subnet": "2001:da8:XXXX:XXXX:24::/80",

    "pools": [ { "pool": "2001:da8:XXXX:XXXX:24::/80" } ],

    "interface":"eno16777736"

 },

 {   "subnet": "2001:da8:XXXX:XXXX:26::/80",

    "pools": [ { "pool": "2001:da8:XXXX:XXXX:26::/80" } ],

    "interface-id":"vlan26"

 },

#  {   "subnet": "2001:db8:3::/64",

#    "pools": [ { "pool": "2001:db8:3::/80" } ] },

#  {   "subnet": "2001:db8:4::/64",

#    "pools": [ { "pool": "2001:db8:4::/80" } ] }

  ]

},

# DHCP DDNS configuration starts here.

# Logging configuration starts here. It tells Kea servers to store

# all log messages (on severity INFO or more) in a file.

# debuglevel variable is used on DEBUG level only.

"Logging":

{

 "loggers": [

  {

   "name": "kea-dhcp4",

   "output_options": [

     {

      "output": "/var/log/kea-dhcp4.log"

     }

   ],

   "severity": "INFO",

   "debuglevel": 0

  },

  {

   "name": "kea-dhcp6",

   "output_options": [

     {

      "output": "/var/log/kea-dhcp6.log"

     }

   ],

   "severity": "DEBUG",

   "debuglevel": 99

  },

  {

   "name": "kea-dhcp-ddns",

   "output_options": [

     {

      "output": "/var/log/kea-ddns.log"

     }

   ],

   "severity": "INFO",

   "debuglevel": 0

  }

 ]

}

}

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

網(wǎng)頁題目:Centos7下IPV6有狀態(tài)DHCPV6配置-創(chuàng)新互聯(lián)
URL分享:http://aaarwkj.com/article28/coidjp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、App開發(fā)、網(wǎng)站制作、網(wǎng)站排名移動網(wǎng)站建設(shè)、電子商務(wù)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管
亚洲中文字幕在线不卡| 激情啪啪啪的免费网站| 国产一区二区三区av在线播放| 蜜臀av在线国产一区| 绯色av一区二区三区蜜臀| 日韩欧美精品久久黄| 97门久欧美日韩久久| 溪乱毛片一区二区三区| 国产精品国产成人免费看| 国产一级二级三级亚洲| 夜福利国产视频大屁股| 国产午夜在线观看免费视频 | 未满18禁止观看在线| 精品国产成人一区二区| 国产精品国产一级国产av| 中文字幕久久熟女蜜桃| 国产亚洲精品福利视频| 国产精品久久久天美传媒| 亚洲国产高清第一第二区| 欧美三级美国三级亚洲三级| 91麻豆视频福利视频| 精品人妻少妇一区二区三| 色爱区偷拍人妻中文字幕| 久久热最新免费观看视频| 中文字幕乱码在线观看一区| 国产一区二区精品久久久女同| 成人高清在线观看91| 免费看欧美黄片在线看| 国产成人精品免费视频大| 亚洲国产日韩欧美第一页| 日韩精品大全一区二区| 亚洲av一区二区三区网站| 91精品产综合久久香蕉| 国产传媒网约在线观看| 一区二区三区福利视频在线观看 | 能在线播放的国产三级| 久久最新最热视频精品| 亚洲中文有码一区二区| 日本在线有码中文视频| 日韩爱爱特级视频中文字幕| 欧美成人夫妻性生活视频|