zoukankan      html  css  js  c++  java
  • Linux DHCP Server 配置给FIT AP 使用的option

     
    方案介绍
    通过在Linux 上配置DHCP Server为AP提供IP及option 43选项。
    1)        下载、安装DHCP Server 相关程序。
    2)        调试基本的dhcp启动服务、并验证能否获取ip。
    3)        配置option 43。
     
     
     
     
    CentOS
    Vi dhcpd.conf
     
    ignore client-updates;
    ddns-update-style ad-hoc;
     
    option acip code 43 = string;
    subnet 2.2.2.0 netmask 255.255.255.0 {
    # --- default gateway
            option routers                2.2.2.254;
            option subnet-mask              255.255.255.0;
    # --- AC IP
            option acip 80:0B:00:00:01:02:02:02:FE:0B:45:14;
    # --- pool
            range dynamic-bootp 2.2.2.1 2.2.2.19;
            default-lease-time 21600;
            max-lease-time 43200;
    }
     
    以十六进制格式表示IP,80为选项类型,0B为选项长度,表示后面内容的长度,0000为Server Type,固定为0000,01为后面AC的IP地址的个数,“02:02:02:FE为AC的IP地址的十六进制,也就是说在配置时只需把自己的AC地址X.X.X.X换算成十六进制替换掉即可。“:0B:45:14为固定格式说明前面定义的是一串ip地址。
     
    AC1# show ap status
    Flags: o = operational[1], c = configure[0], d = download[0], b = boot[0]
           a = auto AP, m = mesh AP, p/P = mesh portal (ena/actv), r = redundant[0] i = insecure, e = encrypted, u = unencrypted
    Radio: E = enabled - 20MHz channel, S = sentry
           W/w = enabled - 40MHz wide channel (HTplus/HTminus)
          D = admin disabled
    IP Address: * = AP behind NAT
    AP   Flag IP Address      Model        MAC Address       Radio 1 Radio 2 Uptime
    ---- ---- --------------- ------------ ----------------- ------- ------- ------
       2 o--i 2.2.2.1         AP1       00:0b:0e:90:01:00 E 11/18 E161/20 04h08m
    AC1#
     
     
    方案介绍
    通过在Linux 上配置DHCP Server为AP提供IP及option 138选项。
    4)        下载、安装DHCP Server 相关程序。
    5)        调试基本的dhcp启动服务、并验证能否获取ip。
    6)        配置option 138。
     
     
     
     
    CentOS
    Vi dhcpd.conf
     
    CentOS
    Vi dhcpd.conf
     
    ignore client-updates;
    ddns-update-style ad-hoc;
     
    option acip code 138 = string;
    subnet 2.2.2.0 netmask 255.255.255.0 {
    # --- default gateway
            option routers                2.2.2.254;
            option subnet-mask              255.255.255.0;
    # --- AC ip
            option acip 01:01:01:01;
    # --- pool
            range dynamic-bootp 2.2.2.20 2.2.2.39;
            default-lease-time 21600;
            max-lease-time 43200;
    }
    以十六进制格式表示IP,“01:01:01:01为AC Loopback 0 IP地址的十六进制,也就是说在配置时只需把自己的AC Loopback 0 IP地址X.X.X.X换算成十六进制替换掉即可。
    AC2#show capwap state
    index peer device               state    
    1      2.2.2.20 : 32768          Run      
     
    AC2#show capwap detail
    -----------CAPWAP CONTROL BLOCK----------
    index is 0
    Current State [ Idle ]
    Recent recieved request's sequence number [43]
    Recent recieved response's sequence number [0]
    Recent send request's sequence number [0]
    Retransmit Count [ 0 ]
    Sending msg queue length [ 0 ]
    Receive msg queue length [ 0 ]
    On line timers:
    My address [ 1.1.1.1 ]
    My address6 [ :: ]
    Peer address [ 2.2.2.20 ]
    Peer address6 [ :: ]
    Peer control port [ 5246 ]
    Peer data port [ 5247 ]
    Session ID [0] [ 0 ]
    Session ID [1] [ 0 ]
    Session ID [2] [ 0 ]
    Session ID [3] [ 0 ]
    Control socket [ 2057 ]
    Data socket [ 2058 ]
    Path MTU [ 1500 ]
    Am I AP [ 0 ]
    Over IPv4 [ 1 ]
    Local or Split [ 1 ]
    Local Switch [ 0 ]
     
    -----------CAPWAP CONTROL BLOCK----------
    index is 1
    Current State [ Run ]
    Recent recieved request's sequence number [141]
    Recent recieved response's sequence number [25]
    Recent send request's sequence number [25]
    Retransmit Count [ 0 ]
    Sending msg queue length [ 0 ]
    Receive msg queue length [ 0 ]
    On line timers: [echo interval ] 
    My address [ 1.1.1.1 ]
    My address6 [ :: ]
    Peer address [ 2.2.2.20 ]
    Peer address6 [ :: ]
    Peer control port [ 32768 ]
    Peer data port [ 32769 ]
    Session ID [0] [ 0 ]
    Session ID [1] [ 0 ]
    Session ID [2] [ 0 ]
    Session ID [3] [ 0 ]
    Control socket [ 2057 ]
    Data socket [ 2058 ]
    Path MTU [ 1500 ]
    Am I AP [ 0 ]
    Over IPv4 [ 1 ]
    Local or Split [ 1 ]
    Local Switch [ 0 ]
     
    AC2#



    上一篇 RG WLAN PRODUCT 

    类别:Just Do LAB技术圈( 0)阅读( 76) ┆ 评论( 1)推送到技术圈返回首页  
  • 相关阅读:
    标题
    Ubuntu配置 PPTP 服务器端
    网络虚拟化问题小记
    DevStack部署Openstack环境
    Ubuntu LVM扩展LV
    Gnocchi+Aodh服务简析
    部署Ceilometer +Gnocchi + Aodh
    Runing MAC on KVM 问题小记
    处理 Ceilometer UPD 丢包
    TC limit bandwidth
  • 原文地址:https://www.cnblogs.com/studio313/p/1829634.html
Copyright © 2011-2022 走看看