Page tree
Skip to end of metadata
Go to start of metadata

Маршрутизаторы серии ME могут выступать в качестве DHCP сервера. 

Настройка сервиса включает настройку интерфейса и настройку сервера, пула адресов, опций. В примере сервис настроен в vrf vrf_eltex.

interface tengigabitethernet 0/0/5.956
  description "test DHCP"
  encapsulation outer-vid 956
  ipv4 address 192.168.117.1/24
  vrf vrf_eltex
exit

dhcp-server vrf vrf_eltex
  dscp 46
  interface tengigabitethernet 0/0/5.956
    address-family ipv4
    address-range 192.168.117.2-192.168.117.254
    options
      default-router 192.168.117.1
      dns-server 4.4.4.4
      dns-server 8.8.8.8
      domain-name Local
    exit
  exit
  ping-check
  static-bindings 192.168.117.2 a8:f9:4b:aa:2d:d5
exit


Просмотр состояния DHCP сервера

0/ME5200:R17-180# sh dhcp-server vrf vrf_eltex 
Fri Apr 26 14:28:42 2024

  DHCP-server process in vrf vrf_eltex
    IPv4 service is running, IPv6 service is not configured

    DSCP is 46
    Interfaces:
      Tengigabitethernet0/0/5.956 
    Failover is not configured

Просмотр текущей аренды

0/ME5200:R17-180# sh dhcp-server bindings vrf vrf_eltex 
Thu Apr 25 10:26:29 2024

  DHCP-server process in vrf vrf_eltex
    IPv4 service is running, IPv6 service is not configured

    IP address        Hardware address   Type     Expires 
    ----------------- ------------------ -------- -------- 
    192.168.117.2     a8:f9:4b:aa:2d:d5  static   Thu Jan  1 07:00:00 1970 
    192.168.117.3     e0:d9:e3:f2:85:00  dynamic  Thu Apr 25 22:26:15 2024 



  • No labels