Bài viết này sẽ hướng dẫn các bạn cấu hình DHCP Server trên thiết bị switch Extreme EXOS bằng mô hình ví dụ sau. 1. Cấu hình thiết bị theo mô hình ví dụ : + Tạo Vlan 10 và 20 trên các Switch 1,2 và 3 : create vlan VLAN10 tag 10 create vlan VLAN20 tag 20 + Cấu hình trunk port và access port trên Switch 1,2 và 3 : - Switch 1 : Sw01 # configure vlan VLAN10 add ports 11 tagged Sw01 # configure vlan VLAN10 add ports 12 tagged Sw01 # configure vlan VLAN20 add ports 11 tagged Sw01 # configure vlan VLAN20 add ports 12 tagged - Switch 2 : Sw02 # configure vlan VLAN10 add port 11 tagged Sw02 # configure vlan VLAN20 add port 11 tagged Sw02 # configure vlan VLAN10 add port 1 untagged Sw02 # configure vlan VLAN20 ad port 2 untagged - Switch 3 : Sw03 # configure vlan VLAN10 add port 12 tagged Sw03 # configure vlan VLAN20 add port 12 tagged Sw03 # configure vlan VLAN10 add port 1 untagged Sw03 # configure vlan VLAN20 ad port 2 untagged - Kiểm tra cấu hình đã tạo trên các switch : + Cấu hình IP cho interface Vlan và bật vlan routing trên Switch 1 : Sw01 # configure vlan VLAN10 ipaddress 192.168.10.1/24 Sw01 # configure vlan VLAN20 ipaddress 192.168.20.1/24 Sw01 # enable ipforwarding vlan VLAN10 Sw01 # enable ipforwarding vlan VLAN20 2. Cấu hình DHCP Server trên Switch 1 : Sw01 # enable dhcp ports 11,12 vlan VLAN10 Sw01 # enable dhcp ports 11,12 vlan VLAN20 Sw01 # configure vlan VLAN10 dhcp-address-range 192.168.10.2 - 192.168.10.100 Sw01 # configure vlan VLAN10 dhcp-options default-gateway 192.168.10.1 Sw01 # configure vlan VLAN10 dhcp-options dns-server 8.8.8.8 Sw01 # configure vlan VLAN20 dhcp-address-range 192.168.20.2 - 192.168.20.100 Sw01 # configure vlan VLAN20 dhcp-options default-gateway 192.168.20.1 Sw01 # configure vlan VLAN20 dhcp-options dns-server 8.8.8.8 3. Kiểm tra DHCP Server đã cấp IP cho Host : !!! Cảm ơn các bạn đã theo dõi bài viết !!!