Extreme Network

Extreme Switch - How to configure DHCP Server in EXOS

https://www.analysisman.com/2020/09/extreme-exos-dhcp-server.html

Step 1. Create and configure a VLAN with IP address and Ports


create vlan vlan_name    
configure vlan vlan_name ipaddress address/mask

exos-switch# create vlan DHCP_Server

exos-switch# configure vlan DHCP_Server ipaddress 192.168.100.1/24
IP interface for VLAN DHCP_Server has been created.

exos-switch# configure vlan DHCP_Server add ports 1-10
 Port 1 2 3 4 5 6 7 8 9 10 untagged has been auto-moved from VLAN "Default" to "DHCP_Server".


Step 2. Enable DHCP client ports with the VLAN


    enable dhcp ports port_list vlan vlan_name

exos-switch# enable dhcp ports 1-10 vlan DHCP_Server


Step 3. Configure DHCP address range with the VLAN


    configure vlan vlan_name dhcp-address-range start_addr - end_addr

exos-switch# configure vlan DHCP_Server dhcp-address-range 192.168.100.10 - 192.168.100.200


Step 4. Configure DHCP options with the VLAN


    configure vlan vlan_name dhcp-options default-gateway gateway_addr
    configure vlan vlan_name dhcp-options dns-server dns_addr

exos-switch# configure vlan DHCP_Server dhcp-options default-gateway 192.168.100.1
exos-switch# configure vlan DHCP_Server dhcp-options dns-server primary 1.1.1.1
exos-switch# configure vlan DHCP_Server dhcp-options dns-server secondary 8.8.8.8


Step 5. Check the DHCP configuration


exos-switch# show dhcp-server
VLAN "DHCP_Server":
    DHCP Address Range   : 192.168.100.10->192.168.100.200
    Netlogin Lease Timer : Not configured (Default = 10 seconds)
    DHCP Lease Timer     : Not configured (Default = 7200 seconds)
    Default Gateway      : 192.168.100.1
    Primary DNS Server   : 1.1.1.1
    Secondary DNS Server : 8.8.8.8
    Ports DHCP Enabled   : 1-10


Step 6. (Optional) Configure the DHCP lease timer

The DHCP lease timer can be changed as follows. This example shows a change from the default 2 hours to 8 hours.

Step 7. (Optional) Check the DHCP lease

exos-switch# show vlan "VLAN_NAME" dhcp-address-allocation

Enabling and Disabling DHCP

https://documentation.extremenetworks.com/exos_32.2/GUID-771750A3-0D4A-4358-A3D0-72B3CD7518AE.shtml

DHCP is enabled on a per port, per VLAN basis.
Enable or disable DHCP on a port in a VLAN using the commands:
enable dhcp ports port_list vlan vlan_name
disable dhcp ports port_list vlan vlan_name

Displaying VLAN information

https://documentation.extremenetworks.com/slxos/sw/20xx/l2config/GUID-D12CCE42-5F55-4DCC-8C83-CBD009CEEF0B.shtml

Do the following to display information about a specific VLAN.

  1. Enter the show vlan to display information about VLAN 1.
    device# show vlan 1
    VLAN Name State Ports
    (u)-Untagged, (t)-Tagged
    (c)-Converged
    ============================================================
    1 default ACTIVE Eth 0/1(t) Eth 0/4(t) Eth 0/5(t) Eth 0/8(t) 
    
  2. Enter the show vlan detail command to display detailed information.
    device# show vlan det
    VLAN: 1, Name: default
    Admin state: ACTIVE, Config status: Static
    Number of interfaces: 7
          Eth 0/4, tagged, Static
          Eth 0/3, tagged, Static
          Eth 0/2, tagged, Static
          Eth 0/8, tagged, Static
          Eth 0/6, tagged, Static
          Eth 0/9, untagged, Static
          Po 20, tagged, Static
    VLAN: 10, Name: VLAN0010
    Admin state: ACTIVE, Config status: Static
    Number of interfaces: 3
          Eth 0/3, tagged, Static
          Eth 0/2, tagged, Static
          Eth 0/4, tagged, Static
          Po 20, tagged, Static
    VLAN: 11, Name: VLAN0011
    Admin state: ACTIVE, Config status: Static
    Number of interfaces: 3
          Eth 0/3, tagged, Static
          Eth 0/2, tagged, Static
          Eth 0/4, tagged, Dynamic (MVRP)
    VLAN: 12, Name: VLAN0012
    Admin state: ACTIVE, Config status: Dynamic (MVRP)
    Number of interfaces: 1
          Eth 0/4, tagged, Dynamic (MVRP)
    VLAN: 13, Name: VLAN0013
    Admin state: ACTIVE, Config status: Dynamic (EP tracking)
    Number of interfaces: 1
          Eth 0/6, tagged, Dynamic (EP tracking)
    VLAN: 14, Name: VLAN0014
    Admin state: INACTIVE(member port down), Config status: Static
    Number of interfaces: 1
          Eth 0/8, tagged, Static