Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cho em hỏi nguyên tắc hoạt động của DHCP relay agent

    Giả sử em có sơ đồ như thế này:

    host -------------|
    host ---------- router ------------ DHCP server
    host -------------|

    3 host nằm ở 3 subnet khác nhau. Còn trên DHCP server thì tạo ra 3 scope ứng với 3 subnet của router. Trên router cấu hình DHCP relay và trỏ đến DHCP server.
    Em không biết là bằng cách nào mà DHCP server biết được request của host đến từ subnet nào để mà cấp địa chỉ cho đúng với subnet tương ứng được.
    Mong được các anh chị và các bạn chỉ giúp.
    Em cảm ơn.

  • #2
    Hi... bạn có thể tham khảo cơ bản về cách làm việc sau đây nhé :

    Exam Hints: DHCP and DHCP Relay Agents


    We have two subnets with clients, printers, servers, DNS servers and even a RRAS server. What is missing is DHCP to ensure everyone can be assigned correct IP addresses, subnet masks, gateways, DNS servers and maybe even WINS so TCP/IP communication can begin.

    So let’s look at what kind of trouble or problems we can be presented with.
    Let’s say the router is not RFC 1542 compatible so BOOTP will not be routed. How can we ensure all clients can be assigned the proper DHCP values?
    We should place the DHCP server on one subnet, create 2 scopes (one for each subnet), and assign the client options that are specific for the scope to the individual scopes. This would be DNS (since we have 2) and the gateway. Client options for the server could be WINS if we wanted all to use the same WINS server. Then the clients would get the correct information. We might even make reservations for the printers to ensure they always get the same IP address recognized by their MAC address, and we might exclude the IP address of the File Server if it has a manually assigned IP configuration. Also, we must remember that the DHCP Server must have a static address, so we should exclude the DHCP server's IP from the scopes.
    Since the router will not forward BOOTP or DHCP Discover broadcasts, we must ensure the clients on the other subnet can communicate with the DHCP server in some other way. We should either use another DHCP server or setup a DHCP Relay Agent. A DHCP Relay Agent will intercept the DHCP Discover broadcasts, send them to the DHCP server, get the DHCP Offer and send it back to the requesting client.
    Another problem could be the RRAS clients. How can we ensure they get the correct IP configuration?
    We should assign the RRAS clients addresses from the DHCP server and ensure there is a scope for them with enough addresses. The RRAS server will borrow 10 IP addresses at a time. To ensure the RRAS clients get the client options we must install a DHCP Relay Agent on the RRAS server – otherwise they will only get an IP address and subnet mask.
    If the RRAS server acts as a DHCP server itself, the RRAS clients will be given the same DNS as the RRAS Server.
    Sometimes we might want to divide Subnet B into 2 subnets to minimize NetBIOS broadcasts or a similar reason. How can we ensure the clients from either of these two subnets will get the DHCP information they need?
    Since the 2 new subnets are located on the same physical subnet side by side (a multinet) and since DHCP only can have one active scope at the time for a physical subnet, we must use a superscope.
    First we must create 3 scopes – one for Subnet A and 2 for Subnet B. We then make a super-scope out of the two scopes for Subnet B.
    Finally we might want to incorporate redundancy in case of a DHCP Server failure. How can we prepare for this?
    We install a DHCP server on each physical subnet (A and B); create the same 3 scopes for all subnets. In each scope we exclude all the addresses that are actively used on another physical subnet so they can be activated later, if needed, because of a failure. Then we create superscopes out of some of the scopes as needed
    VnPro - The way to get knowledge
    \"Không biết thì hỏi, muốn giỏi phải là người dốt \"

    Comment

    Working...
    X