Cấu hình DHCP Relay trên Juniper SRX

Thảo luận trong 'Firewall Juniper' bắt đầu bởi conghuynh, 16/11/21.

  1. conghuynh

    conghuynh Member

    Bài viết này sẽ hướng dẫn các bạn cấu hình DHCP Relay trên thiết bị Juniper SRX theo mô hình ví dụ phía dưới.

    [​IMG]

    1. Cấu hình thiết bị theo mô hình :

    + Cấu hình IP cho interface :

    set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24
    set interfaces ge-0/0/2 unit 0 family inet address 10.7.1.1/24

    + Đưa interface vào Zone và cho phép DHCP :

    set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic system-services dhcp
    set security zones security-zone Server interfaces ge-0/0/2.0

    +Tạo policy cho phép từ zone Trust đến zone Server :

    set security policies from-zone trust to-zone Server policy Trust-to-Server match source-address any
    set security policies from-zone trust to-zone Server policy Trust-to-Server match destination-address any
    set security policies from-zone trust to-zone Server policy Trust-to-Server match application any
    set security policies from-zone trust to-zone Server policy Trust-to-Server then permit

    2. Cấu hình DHCP Relay :

    set forwarding-options dhcp-relay server-group DHCP-Server 10.7.1.100
    set forwarding-options dhcp-relay active-server-group DHCP-Server
    set forwarding-options dhcp-relay group DHCP interface ge-0/0/1.0

    3. Kiểm tra hoạt động :

    + Trên SRX : dùng lệnh show dhcp relay statistics kiểm tra hoạt động DHCP Relay.

    [​IMG]

    + Trên Host kiểm tra đã nhận IP.

    [​IMG]
    [​IMG]

    + Trên DHCP Server.

    [​IMG]

    !!! Cảm ơn các bạn đã theo dõi bài viết !!!
     

trang này