CN102594936A - Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment - Google Patents

Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment Download PDF

Info

Publication number
CN102594936A
CN102594936A CN2012100250031A CN201210025003A CN102594936A CN 102594936 A CN102594936 A CN 102594936A CN 2012100250031 A CN2012100250031 A CN 2012100250031A CN 201210025003 A CN201210025003 A CN 201210025003A CN 102594936 A CN102594936 A CN 102594936A
Authority
CN
China
Prior art keywords
dhcpv6
relaying
request message
option
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100250031A
Other languages
Chinese (zh)
Inventor
梁小冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Digital China Networks Beijing Co Ltd
Original Assignee
Digital China Networks Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital China Networks Beijing Co Ltd filed Critical Digital China Networks Beijing Co Ltd
Priority to CN2012100250031A priority Critical patent/CN102594936A/en
Publication of CN102594936A publication Critical patent/CN102594936A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment. The method comprises the following steps that: A, a DHCPv6 relay unit of the two-layer network switching equipment adds a definition or adds an OPTION 37 set through a default into a DHCPv6 request message transmitted by a client end; B, after packaging the request message into a relay forwarded message, the DHCPv6 relay unit relays the relay forwarded message to a DHCPv6 server; and C, the DHCPv6 server resolves the DHCPv6 request message from the relay forwarded message, analyzes the request message, rejects the request message according to the analytic result, or transmits a relay response message to the client end through the DHCPv6 relay unit after adding an internet protocol version 6 (IPv6) address corresponding to the request message into the relay response message. A DHCPv6 relay function of the two-layer network switching equipment is realized, the method is simply implemented, and the function is reliable.

Description

Two-layer network exchanger is realized the method and system of DHCPv6 relaying
Technical field
The present invention relates to the DHCPv6 address assignment technology of computer network, relate in particular to the method and system that a kind of two-layer network exchanger is realized the DHCPv6 relaying.
Background technology
DHCPv6 (Dynamic Host Configuration Protocol for IPv6) is IPv6 (the Internet Protocol Version 6 of DHCP; Version number is 6 Internet protocol) version; The agreement fundamental norms are defined by RFC3315, and the DHCPv6 service end can be to DHCPv6 client distributing IP v6 address and other configuration parameter.With respect to the IPv6 stateless address automatic configuration protocol of RFC2462 definition, DHCPv6 belongs to a kind of state address automatic configuration protocol that has; In the stateless address auto configuration mode; Router is just notified address prefix to the main frame on the same link; Main frame is the address prefix and local interface EUI-64 (the 64-bit extended unique identifier that obtain; 64 expansion unique identifiers) identifier combination generates an IPv6 address, but router itself does not write down the concrete IPv6 address of main frame; And have in the state address auto configuration mode in that DHCPv6 is this, main frame is given in complete IPv6 address of DHCPv6 server-assignment, and places the IPv6 address of distributing and the binding relationship of client on record.
When the DHCPv6 client is hoped from the DHCPv6 server requests address that is positioned at different links and configuration parameter; Client need could communicate with server through DHCPv6 RELAY; Wherein, DHCPv6 RELAY is the DHCPv6 relaying, also is called DHCPv6 relay agent.The DHCPv6 via node is received the DHCPv6 message from client; This message is packaged into after relaying transmits (RELAY-forward) message again; Be transmitted to not at the DHCPv6 of same link server; The DHCPv6 message of DHCPv6 server response is packaged into gives DHCPv6 via node after relaying is responded (Relay-reply) message; The DHCPv6 via node is removed the relaying encapsulation then, it is reduced into DHCPv6 message hands to the DHCPv6 client again, thereby accomplish communicating by letter between DHCPv6 client and the DHCPv6 server.
DHCPv6 OPTION 37 is relay agent's remote identification number (Remote-ID) options (Relay Agent Remote-ID Option) in the DHCPv6 message, and its option number is 37, is called for short OPTION 37.OPTION 37 is in order to strengthen the fail safe of DHCPv6 server, improves IPv6 address configuration strategy and a kind of mechanism of proposing.Through configuration DHCP v6 relay agent feature on network access equipment; Relay agent adds OPTION 37 options (information such as access physical port and access device sign that wherein comprised client) to the DHCPv6 request message that receives from client; And then be transmitted to the DHCPv6 server to this message; After the DHCPv6 server of support OPTION 37 functions receives the DHCPv6 request message; Give the DHCPv6 client according to the 37 information distribution IPv6 addresses of OPTION in pre-configured strategy and the DHCPv6 request message and other configuration information, simultaneously also can the be possible DHCP attack message of DHCPv6 server and make strick precaution according to the information Recognition among the OPTION 37.
OPTION 37 uses in DHCPv6 relay agent, if in inserting environment, do not dispose DHCPv6 relay agent, then can't utilize the function of OPTION 37 to plan and manage the distribution of incoming end User IP.But the DHCPv6 relaying generally is deployed in router or three-tier switch etc. to have on the equipment of IP transfer capability, and two-layer network exchanger is IP transfer capability and can't realize the DHCPv6 relay function for want of.
Summary of the invention
The main thought of technical scheme of the present invention: two-layer network exchanger is through adding relay agent's remote identification option information in the ID option of DHCPv6 request message; Thereby the DHCPv6 server can distribute the IPv6 address according to the said relay agent remote identification option information that adds from corresponding IPv6 address pool; Simultaneously; Also can confirm the VLAN and the port of DHCPv6 client according to said relay agent remote identification option information, what make that two-layer switching equipment can be correct is transmitted to the DHCPv6 client with the relaying back message using; Efficiently solve two-layer network exchanger and can't realize the problem of DHCPv6 relay function.
For achieving the above object, the present invention realizes through following technical scheme:
A kind of two-layer network exchanger is realized the method for DHCPv6 relaying, comprises the steps:
The DHCPv6 TU Trunk Unit of A, two-layer network exchanger is added the OPTION 37 of definition or default setting in the DHCPv6 request message that client is imported into;
B, said DHCPv6 TU Trunk Unit are packaged into the described request message after relaying E-Packets, and relay to the DHCPv6 server;
DHCPv6 request message during C, DHCPv6 server parses out-trunk E-Packet; And analysis described request message; According to analysis result; Reject this request message, or after in IPv6 address that will the be corresponding adding relaying back message using, be handed down to client through DHCPv6 TU Trunk Unit with this request message.
Special; The OPTION 37 that adds definition or default setting in the said steps A specifically comprises: Enterprise Number is set to the number of registration of manufacturer under the default situation, and remote identification number is set to insert the Media Access Control address of VLAN, access interface and two-layer network exchanger processor; If user definition the content of OPTION37, then insert OPTION 37 information of definition.
Special, DHCPv6 TU Trunk Unit is packaged into relaying with the described request message and also comprises after E-Packeting among the said step B: in the link-address field that relaying E-Packets, insert the IPv6 global unicast address that DHCPv6 TU Trunk Unit receives the client message interface.
Special, the IPv6 stem source address that relaying E-Packets among the said step B is taken from the IPv6 global unicast address of packet receiving interface, if there is not global unicast address, then takes from the link local address of packet receiving interface; IPv6 stem destination address is taken from the destination address of the DHCPv6 TU Trunk Unit of packet receiving interface configuration, and DHCPv6 TU Trunk Unit E-Packets relaying according to this destination address and relays to the DHCPv6 server.
Special, said step C specifically comprises:
DHCPv6 request message during C1, DHCPv6 server parses out-trunk E-Packet;
C2, DHCPv6 server compare OPTION 37 information that prestore in OPTION 37 information of DHCPv6 request message and the DHCPv6 server; If the OPTION 37 of OPTION 37 information matches of existence and DHCPv6 request message in the DHCPv6 server; Then give the DHCPv6 request message with the IPv6 address assignment in these OPTION 37 corresponding address pool; Otherwise, reject said DHCPv6 request message;
C3, DHCPv6 server are encapsulated into its IPv6 address and OPTION 37 in the DHCPv6 request message that distributes to the DHCPv6 request message in the relaying back message using; And the source address that E-Packets relaying is as the destination address of responding the relaying back message using, and clean culture sends to DHCPv6 TU Trunk Unit;
After C4, DHCPv6 TU Trunk Unit are received the relaying back message using, extract OPTION 37, and, the relaying back message using is transmitted client according to VLAN among the OPTION37 and port information.
The invention also discloses a kind of two-layer network exchanger and realize the system of DHCPv6 relaying, comprising:
The DHCPv6 TU Trunk Unit of two-layer network exchanger; Be connected with client; The DHCPv6 request message that is used for importing in client adds the OPTION 37 of definition or default setting, and the described request message is packaged into after relaying E-Packets, and relays to the DHCPv6 server;
The DHCPv6 server; Be connected with two-layer network exchanger, parse the DHCPv6 request message of relaying in E-Packeting, and analyze the described request message; According to analysis result; Reject this request message, or after in IPv6 address that will the be corresponding adding relaying back message using, be handed down to client through DHCPv6 TU Trunk Unit with this request message.
Special; The OPTION 37 of said interpolation definition or default setting specifically comprises: Enterprise Number is set to the number of registration of manufacturer under the default situation, and remote identification number is set to insert the Media Access Control address of VLAN, access interface and two-layer network exchanger processor; If user definition the content of OPTION 37, then insert OPTION 37 information of definition.
Special, said DHCP relay unit specifically also is used for
In the link-address field that relaying E-Packets, insert the IPv6 global unicast address that DHCPv6 TU Trunk Unit receives the client message interface; Wherein, the IPv6 stem source address that relaying E-Packets is taken from the IPv6 global unicast address of packet receiving interface, if there is not global unicast address, then takes from the link local address of packet receiving interface; IPv6 stem destination address is taken from the destination address of the DHCPv6 TU Trunk Unit of packet receiving interface configuration, and DHCPv6 TU Trunk Unit E-Packets relaying according to this destination address and relays to the DHCPv6 server.
Special, said Dynamic Host Configuration Protocol server compares OPTION 37 information that prestore in OPTION 37 information of DHCPv6 request message and the DHCPv6 server; If the OPTION 37 of OPTION 37 information matches of existence and DHCPv6 request message in the DHCPv6 server; Then give the DHCPv6 request message with the IPv6 address assignment in these OPTION 37 corresponding address pool; Otherwise; Reject said DHCPv6 request message; And after being encapsulated into the OPTION 37 in said IPv6 address and the DHCPv6 request message in the relaying back message using, the source address that E-Packets relaying is as the destination address of responding the relaying back message using, and clean culture sends to DHCPv6 TU Trunk Unit.
Special, said DHCPv6 TU Trunk Unit also is used for
Extract the OPTION 37 in the relaying back message using, and, the relaying back message using is transmitted client according to VLAN among the OPTION 37 and port information.
Beneficial effect of the present invention does; Said a kind of two-layer network exchanger realizes that the method and system of DHCPv6 relaying are that the DHCPv6 request message of receiving adds definition or adds default OPTION 37 through DHCPv6 TU Trunk Unit; Thereby make two-layer network exchanger need not complicated configuration and just can realize the DHCPv6 relay function; And implement simply reliable in function.
Description of drawings
The two-layer network exchanger that Fig. 1 provides for the embodiment of the invention 1 is realized the method flow diagram of DHCPv6 relaying;
The two-layer network exchanger that Fig. 2 provides for the embodiment of the invention 2 is realized the system block diagram of DHCPv6 relaying.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, the present invention is described further below in conjunction with accompanying drawing and embodiment.
Embodiment 1
Principle of the present invention:
The DHCPv6 relaying generally is deployed in router or three-tier switch etc. to have on the equipment of IP transfer capability; Two-layer network exchanger is positioned two layers of exchange, therefore on hardware, does not possess the IP transfer capability, does not also remove to realize the IP forwarding capability on the software; Therefore; Generally only dispose software three layer interfaces and a management ip address is set,, do management and use as a terminal node (End Node).Yet; The equipment of realizing the DHCPv6 relaying generally disposes a plurality of three layer interfaces; The network segment (VLAN, VLAN) that each interface is corresponding different down, the corresponding broadcast domain of each VLAN; Configuration of IP v6 address on three layer interfaces; This IP can insert the link-address field that relaying E-Packets when message relay, the DHCPv6 server will distribute the IP of the same network segment to the user according to said link-address, and this DHCPv6 server just can distribute the address for the DHCPv6 user of different segment; And the DHCPv6 relaying also need mate three layer interfaces according to link-address, the relaying back message using returned to the DHCPv6 user of corresponding VLAN; Therefore, in the prior art, lack a plurality of three layer interfaces and make two-layer network exchanger be not suitable for doing DHCPv6 relay agent.
But; Two-layer network exchanger can carry VLAN and port information through option 37; The DHCPv6 server also can distribute the Ipv6 address of the corresponding network segment according to vlan information; Simultaneously; When the relaying back message using arrives the DHCPv6 relaying, also can confirm the VLAN and the port of DHCPv6 client according to OPTION 37 (OPTION 37 that the DHCPv6 server is intact during relaying is E-Packeted is encapsulated in the relaying back message using), what the two-layer network exchanger ability was correct is transmitted to the DHCPV6 client with the relaying back message using.Therefore, OPTION 37 of the present invention is similar to the effect of link-address, is suitable for not having the two-layer network exchanger of a plurality of three layer interfaces.
Please with reference to shown in Figure 1, Fig. 1 realizes the method flow diagram of DHCPv6 relaying for two-layer network exchanger of the present invention.
Two-layer network exchanger realizes that the method for DHCPv6 relaying comprises the steps: in the present embodiment
Step 101, two-layer network exchanger start DHCPv6 TU Trunk Unit, and hardware table item is set then, and the DHCPv6 request message is redirected to the processor (CPU) of two-layer network exchanger.During the interpolation content of configuration DHCP v6OPTION 37; Can specify a specific character string and hexadecimal string; Under the default situation content be the two-layer network exchanger processor medium access control (CPU MAC) address, client (being the DHCPv6 client) VLAN (Virtual Local Area Network, VLAN) and port numbers.And the address of the configuration DHCPv6 server that need be relayed to.
The DHCPv6 TU Trunk Unit of step 102, two-layer network exchanger is added the OPTION 37 of definition or default setting in the DHCPv6 request message that client is imported into.
After the DHCPv6 TU Trunk Unit of two-layer network exchanger is received the DHCP request message of client; In the DHCP request message, add the OPTION 37 of definition or default setting; Wherein, Enterprise Number under the default situation (Enterprise-Number) is set to the number of registration of manufacturer, and remote identification number (Remote-ID) is set to insert medium access control (CPUMAC) address of VLAN, access interface and two-layer network exchanger processor; If user definition the content of OPTION 37, then insert OPTION 37 information of definition.
Step 103, DHCPv6 TU Trunk Unit are packaged into the DHCPv6 request message after relaying E-Packets, and relay to the DHCPv6 server.
DHCPv6 TU Trunk Unit is packaged into relaying with the DHCPv6 request message and E-Packets; And in the link-address field that relaying E-Packets, insert the IPv6 global unicast address that DHCPv6 TU Trunk Unit receives the client message interface; Wherein, The IPv6 stem source address that relaying E-Packets is taken from the IPv6 global unicast address of packet receiving interface, if there is not global unicast address, then takes from the link local address of packet receiving interface; IPv6 stem destination address is taken from the destination address of the DHCPv6 TU Trunk Unit of packet receiving interface configuration, and DHCPv6 TU Trunk Unit E-Packets relaying according to this destination address and relays to the DHCPv6 server.Said link-address field is used to store a global unicast address or link local address, and the DHCPv6 server is confirmed client place link with this address.
After step 104, DHCPv6 server receive that relaying E-Packets, therefrom parse the DHCPv6 request message that client is sent.
Step 105, DHCPv6 server are analyzed the DHCPv6 request message, and according to analysis result, reject this request message, or after in IPv6 address that will be corresponding with this request message adding relaying back message using, are handed down to DHCPv6 TU Trunk Unit.
The DHCPv6 server compares OPTION 37 information that prestore in OPTION 37 information of DHCPv6 request message and the DHCPv6 server; If the OPTION 37 of OPTION 37 information matches of existence and DHCPv6 request message in the DHCPv6 server; Then give the DHCPv6 request message with the IPv6 address assignment in these OPTION 37 corresponding address pool; Otherwise, reject said DHCPv6 request message.Then; The DHCPv6 server is encapsulated into its IPv6 address and OPTION 37 in the DHCPv6 request message that distributes to the DHCPv6 request message in the relaying back message using; And the source address that E-Packets relaying is as the destination address of responding the relaying back message using; According to this destination address, the clean culture of relaying back message using is sent to DHCPv6 TU Trunk Unit.
After step 106, DHCPv6 TU Trunk Unit are received the relaying back message using, extract OPTION 37, and, the relaying back message using is transmitted client according to VLAN among the OPTION 37 and port information.
After DHCPv6 TU Trunk Unit is received the relaying back message using; Extract OPTION 37 wherein; The DHCPv6 that from the relaying back message using, parses the DHCPv6 server then responds, and according to VLAN among the OPTION 37 and port information, the DHCPv6 response is transmitted to client.
Embodiment 2
As shown in Figure 2, Fig. 2 realizes the system block diagram of DHCPv6 relaying for two-layer network exchanger of the present invention.
Two-layer network exchanger realizes that the system of DHCPv6 relaying comprises in the present embodiment: DHCPv6 server 204 and started DHCPv6 TU Trunk Unit and the two-layer network exchanger 202 of hardware table item has been set.
The DHCPv6 TU Trunk Unit of said two-layer network exchanger 202; Be connected with client (being the DHCPv6 client) 201; The DHCPv6 request message that is used for importing in client 201 adds the OPTION 37 of definition or default setting; And the described request message is packaged into after relaying E-Packets, relay to DHCPv6 server 204.
After two-layer network exchanger 202 starts DHCPv6 TU Trunk Unit, hardware table item is set, the DHCPv6 request message is redirected to the processor of two-layer network exchanger 202.During the interpolation content of configuration DHCP v6 OPTION 37; Can specify a specific character string and hexadecimal string, content is the Media Access Control address of two-layer network exchanger 202 processors, the VLAN and the port numbers of client 201 under the default situation.And the address of the configuration DHCPv6 server 204 that need be relayed to.
After the DHCPv6 TU Trunk Unit of two-layer network exchanger 202 is received the DHCP request message of client 201; In the DHCP request message, add the OPTION 37 of definition or default setting; Wherein, The Enterprise Number of OPTION 37 is set to the number of registration of manufacturer under the default situation, and remote identification number is set to the Media Access Control address of accessing virtual LAN, access interface and two-layer network exchanger 202 processors; If user definition the content of OPTION 37, then insert OPTION 37 information of definition.
DHCPv6 TU Trunk Unit is packaged into relaying with the DHCPv6 request message and E-Packets; And in the link-address field that relaying E-Packets, insert the IPv6 global unicast address that DHCPv6 TU Trunk Unit receives client 201 message interfaces; Wherein, The IPv6 stem source address that relaying E-Packets is taken from the IPv6 global unicast address of packet receiving interface, if there is not global unicast address, then takes from the link local address of packet receiving interface; IPv6 stem destination address is taken from the destination address of the DHCPv6 TU Trunk Unit of packet receiving interface configuration, and DHCPv6 TU Trunk Unit E-Packets relaying according to this destination address and relays to DHCPv6 server 204.
Said DHCPv6 server 204; Be connected with two-layer network exchanger 202 through local area network (LAN) 203, parse the DHCPv6 request message of relaying in E-Packeting, and analyze the described request message; According to analysis result; Reject this request message, or after in IPv6 address that will the be corresponding adding relaying back message using, be handed down to client 201 through DHCPv6 TU Trunk Unit with this request message.
DHCPv6 server 204 compares OPTION 37 information that prestore in OPTION 37 information of DHCPv6 request message and the DHCPv6 server 204; If the OPTION 37 of OPTION 37 information matches of existence and DHCPv6 request message in DHCPv6 server 204; Then give the DHCPv6 request message with the IPv6 address assignment in these OPTION 37 corresponding address pool; Otherwise, reject said DHCPv6 request message.Then; DHCPv6 server 204 is encapsulated into its IPv6 address and OPTION 37 in the DHCPv6 request message that distributes to the DHCPv6 request message in the relaying back message using; And the source address that E-Packets relaying is as the destination address of responding the relaying back message using; According to this destination address, the clean culture of relaying back message using is sent to DHCPv6 TU Trunk Unit.After DHCPv6 TU Trunk Unit is received the relaying back message using; Extract OPTION 37 wherein; The DHCPv6 that from the relaying back message using, parses DHCPv6 server 204 then responds, and according to VLAN among the OPTION 37 and port information, the DHCPv6 response is transmitted to client 201.
The present invention makes two-layer network exchanger need not complicated configuration, through adding definition or add default OPTION 37 information for the DHCPv6 request message that receives, has realized the DHCPv6 relay function, and implements simply reliable in function.
Above-mentioned preferred embodiment of the present invention and the institute's application technology principle of being merely, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses, and the variation that can expect easily or replacement all should be encompassed in protection scope of the present invention.

Claims (10)

1. the method for a two-layer network exchanger realization DHCPv6 relaying is characterized in that, comprises the steps:
The DHCPv6 TU Trunk Unit of A, two-layer network exchanger is added the OPTION 37 of definition or default setting in the DHCPv6 request message that client is imported into;
B, said DHCPv6 TU Trunk Unit relay to the DHCPv6 server after the described request message is packaged into relaying forwarding (RELAY-forward) message;
DHCPv6 request message during C, DHCPv6 server parses out-trunk E-Packet; And analysis described request message; According to analysis result; Reject this request message, or after in IPv6 address that will be corresponding adding relaying response (Relay-reply) message, be handed down to client through DHCPv6 TU Trunk Unit with this request message.
2. two-layer network exchanger according to claim 1 is realized the method for DHCPv6 relaying, it is characterized in that, the OPTION 37 that adds definition or default setting in the said steps A specifically comprises:
Enterprise Number (Enterprise-Number) under the default situation is set to the number of registration of manufacturer, and remote identification number (Remote-ID) is set to insert medium access control (CPU MAC) address of VLAN, access interface and two-layer network exchanger processor; If user definition the content of OPTION 37, then insert OPTION 37 information of definition.
3. two-layer network exchanger according to claim 2 is realized the method for DHCPv6 relaying; It is characterized in that DHCPv6 TU Trunk Unit is packaged into relaying with the described request message and also comprises after E-Packeting among the said step B: in the link-address field that relaying E-Packets, insert the IPv6 global unicast address that DHCPv6 TU Trunk Unit receives the client message interface.
4. two-layer network exchanger according to claim 3 is realized the method for DHCPv6 relaying; It is characterized in that; The IPv6 stem source address that relaying E-Packets among the said step B is taken from the IPv6 global unicast address of packet receiving interface; If there is not global unicast address, then take from the link local address of packet receiving interface; IPv6 stem destination address is taken from the destination address of the DHCPv6 TU Trunk Unit of packet receiving interface configuration, and DHCPv6 TU Trunk Unit E-Packets relaying according to this destination address and relays to the DHCPv6 server.
5. two-layer network exchanger according to claim 4 is realized the method for DHCPv6 relaying, it is characterized in that said step C specifically comprises:
DHCPv6 request message during C1, DHCPv6 server parses out-trunk E-Packet;
C2, DHCPv6 server compare OPTION 37 information that prestore in OPTION 37 information of DHCPv6 request message and the DHCPv6 server; If the OPTION 37 of OPTION 37 information matches of existence and DHCPv6 request message in the DHCPv6 server; Then give the DHCPv6 request message with the IPv6 address assignment in these OPTION 37 corresponding address pool; Otherwise, reject said DHCPv6 request message;
C3, DHCPv6 server are encapsulated into its IPv6 address and OPTION 37 in the DHCPv6 request message that distributes to the DHCPv6 request message in the relaying back message using; And the source address that E-Packets relaying is as the destination address of responding the relaying back message using, and clean culture sends to DHCPv6 TU Trunk Unit;
After C4, DHCPv6 TU Trunk Unit are received the relaying back message using, extract OPTION 37, and, the relaying back message using is transmitted client according to VLAN among the OPTION37 and port information.
6. the system of a two-layer network exchanger realization DHCPv6 relaying is characterized in that, comprising:
The DHCPv6 TU Trunk Unit of two-layer network exchanger; Be connected with client; The DHCPv6 request message that is used for importing in client adds the OPTION 37 of definition or default setting, and the described request message is packaged into after relaying E-Packets, and relays to the DHCPv6 server;
The DHCPv6 server; Be connected with two-layer network exchanger, parse the DHCPv6 request message of relaying in E-Packeting, and analyze the described request message; According to analysis result; Reject this request message, or after in IPv6 address that will the be corresponding adding relaying back message using, be handed down to client through DHCPv6 TU Trunk Unit with this request message.
7. two-layer network exchanger according to claim 6 is realized the system of DHCPv6 relaying, it is characterized in that the OPTION 37 of said interpolation definition or default setting specifically comprises:
Enterprise Number is set to the number of registration of manufacturer under the default situation, and remote identification number is set to insert the Media Access Control address of VLAN, access interface and two-layer network exchanger processor; If user definition the content of OPTION 37, then insert OPTION 37 information of definition.
8. two-layer network exchanger according to claim 7 is realized the system of DHCPv6 relaying, it is characterized in that said DHCP relay unit specifically also is used for
In the link-address field that relaying E-Packets, insert the IPv6 global unicast address that DHCPv6 TU Trunk Unit receives the client message interface; Wherein, the IPv6 stem source address that relaying E-Packets is taken from the IPv6 global unicast address of packet receiving interface, if there is not global unicast address, then takes from the link local address of packet receiving interface; IPv6 stem destination address is taken from the destination address of the DHCPv6 TU Trunk Unit of packet receiving interface configuration, and DHCPv6 TU Trunk Unit E-Packets relaying according to this destination address and relays to the DHCPv6 server.
9. two-layer network exchanger according to claim 8 is realized the system of DHCP relay, it is characterized in that said Dynamic Host Configuration Protocol server compares OPTION 37 information that prestore in OPTION 37 information of DHCPv6 request message and the DHCPv6 server; If the OPTION 37 of OPTION 37 information matches of existence and DHCPv6 request message in the DHCPv6 server; Then give the DHCPv6 request message with the IPv6 address assignment in these OPTION 37 corresponding address pool; Otherwise; Reject said DHCPv6 request message; And after being encapsulated into the OPTION 37 in said IPv6 address and the DHCPv6 request message in the relaying back message using, the source address that E-Packets relaying is as the destination address of responding the relaying back message using, and clean culture sends to DHCPv6 TU Trunk Unit.
10. two-layer network exchanger according to claim 9 is realized the system of DHCP relay, it is characterized in that said DHCPv6 TU Trunk Unit also is used for
Extract the OPTION 37 in the relaying back message using, and, the relaying back message using is transmitted client according to VLAN among the OPTION 37 and port information.
CN2012100250031A 2012-02-06 2012-02-06 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment Pending CN102594936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100250031A CN102594936A (en) 2012-02-06 2012-02-06 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100250031A CN102594936A (en) 2012-02-06 2012-02-06 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment

Publications (1)

Publication Number Publication Date
CN102594936A true CN102594936A (en) 2012-07-18

Family

ID=46483129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100250031A Pending CN102594936A (en) 2012-02-06 2012-02-06 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment

Country Status (1)

Country Link
CN (1) CN102594936A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412143A (en) * 2016-09-12 2017-02-15 新疆石油管理局数据公司 Visible allocation method of cluster node IP address
CN106878479A (en) * 2016-12-23 2017-06-20 新华三技术有限公司 A kind of address distribution method and device
CN109831541A (en) * 2017-11-23 2019-05-31 中国电信股份有限公司 Device address distribution method, system and relevant device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030054979A (en) * 2001-12-26 2003-07-02 엘지전자 주식회사 Dynamic ip address assignment method in wireless packet service network
CN101075962A (en) * 2007-06-26 2007-11-21 中兴通讯股份有限公司 Method and apparatus for realizing DHCP repeater in two-layer network exchanger
CN101150517A (en) * 2007-10-25 2008-03-26 杭州华三通信技术有限公司 Packet transmission method and device
CN101753460A (en) * 2010-01-15 2010-06-23 杭州华三通信技术有限公司 Method and device for processing internet protocol version 6(IPV6) routing prefix
CN102255918A (en) * 2011-08-22 2011-11-23 神州数码网络(北京)有限公司 DHCP (Dynamic Host Configuration Protocol) Option 82 based user accessing authority control method
CN102291305A (en) * 2011-08-16 2011-12-21 神州数码网络(北京)有限公司 Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN102307247A (en) * 2011-08-22 2012-01-04 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
CN102316101A (en) * 2011-08-09 2012-01-11 神州数码网络(北京)有限公司 Safe access method based on dynamic host configuration protocol (DHCP) SNOOPING
CN102325145A (en) * 2011-10-21 2012-01-18 杭州华三通信技术有限公司 Method and equipment for carrying out access control on dual-stack user

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030054979A (en) * 2001-12-26 2003-07-02 엘지전자 주식회사 Dynamic ip address assignment method in wireless packet service network
CN101075962A (en) * 2007-06-26 2007-11-21 中兴通讯股份有限公司 Method and apparatus for realizing DHCP repeater in two-layer network exchanger
CN101150517A (en) * 2007-10-25 2008-03-26 杭州华三通信技术有限公司 Packet transmission method and device
CN101753460A (en) * 2010-01-15 2010-06-23 杭州华三通信技术有限公司 Method and device for processing internet protocol version 6(IPV6) routing prefix
CN102316101A (en) * 2011-08-09 2012-01-11 神州数码网络(北京)有限公司 Safe access method based on dynamic host configuration protocol (DHCP) SNOOPING
CN102291305A (en) * 2011-08-16 2011-12-21 神州数码网络(北京)有限公司 Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN102255918A (en) * 2011-08-22 2011-11-23 神州数码网络(北京)有限公司 DHCP (Dynamic Host Configuration Protocol) Option 82 based user accessing authority control method
CN102307247A (en) * 2011-08-22 2012-01-04 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
CN102325145A (en) * 2011-10-21 2012-01-18 杭州华三通信技术有限公司 Method and equipment for carrying out access control on dual-stack user

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
B. VOLZ,CISCO SYSTEMS, INC.: "Dynamic Host Configuration Protocol for IPv6 (DHCPv6) Relay Agent Subscriber-ID Option", 《IETF REQUEST FOR COMMENTS: 4580》 *
B. VOLZ,CISCO SYSTEMS, INC: "Dynamic Host Configuration Protocol for IPv6 (DHCPv6) Relay Agent Remote-ID Option", 《ITEF REQUEST FOR COMMENTS: 4649》 *
孟学军: "802.1x认证管理方式分析及实现", 《现代计算机(专业版)》, vol. 2005, no. 217, 30 August 2005 (2005-08-30), pages 66 - 68 *
港湾: "港湾6800E说明书08-DHCP及相关操作", 《DHCP 及相关操作》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412143A (en) * 2016-09-12 2017-02-15 新疆石油管理局数据公司 Visible allocation method of cluster node IP address
CN106412143B (en) * 2016-09-12 2019-10-18 新疆石油管理局数据公司 A kind of visualization distribution method of clustered node IP address
CN106878479A (en) * 2016-12-23 2017-06-20 新华三技术有限公司 A kind of address distribution method and device
CN106878479B (en) * 2016-12-23 2020-07-07 新华三技术有限公司 Address allocation method and device
CN109831541A (en) * 2017-11-23 2019-05-31 中国电信股份有限公司 Device address distribution method, system and relevant device

Similar Documents

Publication Publication Date Title
CN102447752B (en) Service access method, system and device based on layer 2 tunnel protocol (L2TP)
CN102025591B (en) Method and system for implementing virtual private network
CN101572712B (en) Method for preventing attack of counterfeit message and repeater equipment thereof
US8875233B2 (en) Isolation VLAN for layer two access networks
CN101741702B (en) Method and device for limiting broadcast of ARP request
CN106559292A (en) A kind of broad band access method and device
US8862705B2 (en) Secure DHCP processing for layer two access networks
EP2347554B1 (en) A method and a gateway for providing multiple internet access
CN102170395A (en) Data transmission method and network equipment
CN102238075A (en) IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN101150517A (en) Packet transmission method and device
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
EP2675117A1 (en) Routing method and device for host in multi-homing site
CN102752413A (en) Method for selecting DHCP (dynamic host configuration protocol) server and network equipment
CN107770010A (en) A kind of home intranet method and home networking system based on OpenFlow
US8867542B2 (en) Method and apparatus for connecting subscriber devices to an IPv6-capable aggregation network
CN102594936A (en) Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment
CN102438051A (en) Method and system for realizing dynamic host configuration protocol (DHCP) relay of two-layer network switch equipment
JP2013509837A (en) Method and system for realizing identity and location mapping
CN102571592B (en) There is three-layer switching equipment and the data message forwarding method of port binding function
CN103108056A (en) Device and method capable of achieving subscriber identifier and locator separation network
CN102480476A (en) Multi-service access method based on DHCP protocol extension
CN102594808A (en) System and method for preventing Dynamic Host Configuration Protocol for Internet Protocol Version 6 (DHCPv6) server spoofing
CN101340405A (en) Gateway apparatus based on WiMAX access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Liang Xiaobing

Inventor after: Xiang Yangchao

Inventor before: Liang Xiaobing

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: LIANG XIAOBING TO: LIANG XIAOBING XIANG YANGCHAO

RJ01 Rejection of invention patent application after publication

Application publication date: 20120718

RJ01 Rejection of invention patent application after publication