1. #新建VLAN
    2. #
    3. vlan 77
    4. #
    5. #建立地址池
    6. #
    7. dhcp server ip-pool ip-pool-100.3.77.0 extended
    8. network ip range 100.3.77.2 100.3.77.150
    9. network mask 255.255.255.0
    10. gateway-list 100.3.77.1
    11. dns-list 10.3.71.3 10.3.71.4
    12. expired day 0 hour 2
    13. #
    14. #设置网关地址及引用地址池
    15. #
    16. interface Vlan-interface77
    17. ip address 100.3.77.1 255.255.255.0
    18. dhcp server apply ip-pool ip-pool-100.3.77.0
    19. #
    20. #设置接口模式
    21. #
    22. interface GigabitEthernet1/0/34
    23. port link-mode bridge
    24. port access vlan 77
    25. #