Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
A technology of virtual local area network and network protocol, applied in the direction of network interconnection, data exchange network, digital transmission system, etc., can solve the problems of DHCP negotiation failure, cumbersome, error-prone, etc., and achieve the effect of improving the efficiency and accuracy of network configuration
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] In this embodiment, a method for acquiring VLAN ID and IP address is provided. figure 2 is a flow chart of a method for obtaining a VLAN ID and an IP address according to an embodiment of the present invention, such as figure 2 shown, including:
[0030] Step S202, the client in the VLAN determines that the packet sent by the client needs to carry the VLAN ID of the virtual local area network identifier.
[0031] Step S204, the client sends a plurality of DHCP DISCOVER messages carrying VLAN IDs to the DHCP server in the VLAN, wherein each DHCP DISCOVER message corresponds to a VLAN ID.
[0032] Step S206, within the first predetermined time, if the client receives a DHCP response message corresponding to the DHCP DISCOVER message from the server, the client obtains the VLAN ID and IP address according to the DHCP response message.
[0033] Through the above steps, the VLAN ID and IP address are obtained according to the DHCP response message, which avoids that in t...
Embodiment 2
[0041] In this embodiment, the acquisition of the VLAN ID and the IP address by the client is implemented.
[0042] image 3 It is a flow chart of the method for obtaining VLAN ID and IP address according to the preferred embodiment of the present invention, such as image 3 shown, including:
[0043] Step S302, construct a DHCP DISCOVER message without VLAN tag, carry option 60 in the option request list, and send the message through the network interface.
[0044] Step S304, set a timer to enter the waiting state; if the DHCP OFFER message is received within the waiting 60s, and the DHCP OFFER message has passed the check of option 60, the device constructs a DHCP REQUEST packet and sends it out through the network interface, If the DHCP ACK message is received, and the content of the message is correct, the device has completed the correct DHCP message exchange process, and the obtained IP address is valid, and goes to step S306; if the judgment result is no, that is, in ...
Embodiment 3
[0055] This embodiment synthesizes the first embodiment and the preferred implementations therein, and provides a client in this embodiment. Figure 4 is a structural block diagram of a client according to an embodiment of the present invention, such as Figure 4 shown, the client includes:
[0056] The determining module 42 is used to determine that the message sent by the client needs to carry the VLAN ID of the virtual local area network; the sending module 44 is connected to the determining module 42, and when the determining module 42 determines that the message sent by the client needs to carry the VLAN ID of the virtual local area network , for sending a plurality of dynamic host allocation protocol DHCP DISCOVER messages that carry VLAN IDs to the DHCP server in the VLAN, wherein each DHCP DISCOVER message corresponds to a VLAN ID; the acquisition module 46 is connected to the sending module 44, for Within the first predetermined time, when the client receives the DHC...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com