이론 관련/네트워크 관련
DHCP option 82 relay
구차니
2025. 1. 23. 10:20
물리적 포트에 특정 ip를 할당하는게 어떤 기술일까 하고 찾아보는데
이걸 기반으로 포트에 꽂히면 인증을 해주어서 DHCP option 82를 설정해주고
그럼 그 값에 따라 DHCP 서버에서 특정 ip를 주도록 구성을 해둔 듯?
[링크 : http://nstco.co.kr/sub/view.php?idx=95]
[링크 : https://patents.google.com/patent/KR20140062387A/ko]
[링크 : https://serverfault.com/questions/350446/how-to-bind-an-ip-to-a-specific-switch-port-with-dhcp]
+
2026.03.13

하나만 설정하면 되는게 아니라 4개의 옵션이 다 설정되어야 DHCP option 82 relay 가 적용되나 보다.
| option agent.circuit-id string; The circuit-id suboption encodes an agent-local identifier of the circuit from which a DHCP client-to- server packet was received. It is intended for use by agents in relaying DHCP responses back to the proper circuit. The format of this option is currently defined to be vendor-dependent, and will probably remain that way, although the current draft allows for the possibility of standardizing the format in the future. option agent.remote-id string; The remote-id suboption encodes information about the remote host end of a circuit. Examples of what it might contain include caller ID information, username information, remote ATM address, cable modem ID, and similar things. In principal, the meaning is not well-specified, and it should generally be assumed to be an opaque object that is administratively guaranteed to be unique to a particular remote end of a circuit. option agent.DOCSIS-device-class uint32; The DOCSIS-device-class suboption is intended to convey information about the host endpoint, hardware, and software, that either the host operating system or the DHCP server may not otherwise be aware of (but the relay is able to distinguish). This is implemented as a 32-bit field (4 octets), each bit representing a flag describing the host in one of these ways. So far, only bit zero (being the least significant bit) is defined in RFC3256. If this bit is set to one, the host is considered a CPE Controlled Cable Modem (CCCM). All other bits are reserved. option agent.link-selection ip-address; The link-selection suboption is provided by relay agents to inform servers what subnet the client is actually attached to. This is useful in those cases where the giaddr (where responses must be sent to the relay agent) is not on the same subnet as the client. When this option is present in a packet from a relay agent, the DHCP server will use its contents to find a subnet declared in configuration, and from here take one step further backwards to any shared-network the subnet may be defined within; the client may be given any address within that shared network, as normally appropriate. |