Example for Configuring the Router to Function as a DHCP Client to Dynamically Obtain an IP Address

Created: Jan 14, 2017 23:11:15Latest reply: Jan 15, 2017 00:07:56 1008 1 0 0

Applicability

This example applies to all versions and AR routers.

Networking Requirements

RouterA functions as the DHCP client and dynamically obtains IP addresses of interfaces.

Figure 6-2  DHCP client configuration
81190cc3122041e4b996f4a267a34d05

Procedure

  1. Configure RouterA.

    #                                                                               
    dhcp enable //Enable the DHCP function.                                                                    
    #                                                 
    interface GigabitEthernet0/0/0                                                  
     ip address dhcp-alloc                                            
    #                                                                               
    

  2. Configure RouterB.

    #                                                                               
    dhcp enable //Enable the DHCP function.                                                                    
    #                                                 
    ip pool ip-pool1                                                                
     gateway-list 10.202.1.1 //Configure a gateway address.                                                         
     network 10.202.1.0 mask 255.255.255.0 //Specify the range of IP addresses that can be dynamically allocated from the global IP address pool.                                 
    #
    interface GigabitEthernet0/0/0
     ip address 10.202.1.1 255.255.255.0                                                  
     dhcp select global //Configure the interface to use the global IP address pool.
    #
    

  3. Verify the configuration.

    Run the display ip interface brief command on RouterA to view the IP address that GE0/0/0 has obtained.

Configuration Notes

None.


  • x
  • convention:

user_2790689     Created Jan 15, 2017 00:07:56 Helpful(0) Helpful(0)

thank you
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top