Got it

how to configure a BOOTP Client

Created: Yesterday 08:38Latest reply: Apr 20, 2022 08:43:28 67 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)
how to configure a BOOTP Client?

Featured Answers
AymanOT
MVE Author Created Yesterday 08:40

Configuring a BOOTP Client

Networking Requirements

In Figure 4-18, SwitchA functions as a BOOTP client and needs to dynamically obtain an IP address, DNS server address, and gateway address from a DHCP server (SwitchB).

Figure 4-18  Networking diagram for configuring a BOOTP client
download?uuid=80b8a7a46c36413987e782aeb178f271

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure SwitchA as a BOOTP client to dynamically obtain an IP address from the DHCP server.

  2. Create a global address pool on SwitchB and set corresponding attributes.

Procedure

  1. Configure the BOOTP client function on SwitchA.

    # Create VLAN 10 and add GE0/0/1 to VLAN 10.

    <HUAWEI> system-view[HUAWEI] sysname SwitchA[SwitchA] vlan 10[SwitchA-vlan10] quit[SwitchA] interface gigabitethernet 0/0/1[SwitchA-GigabitEthernet0/0/1] port link-type trunk[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 10[SwitchA-GigabitEthernet0/0/1] quit

    # Enable the BOOTP client function on VLANIF 10.

    [SwitchA] interface vlanif 10[SwitchA-Vlanif10] ip address bootp-alloc
  2. Create a global address pool on SwitchB and set corresponding attributes.

    # Enable DHCP.

    <HUAWEI> system-view[HUAWEI] sysname SwitchB[SwitchB] dhcp enable[SwitchB] dhcp server bootp[SwitchB] dhcp server bootp automatic

    # Create VLAN 10 and add GE0/0/1 to VLAN 10.

    [SwitchB] vlan 10[SwitchB-vlan10] quit[SwitchB] interface gigabitethernet 0/0/1[SwitchB-GigabitEthernet0/0/1] port link-type trunk[SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan 10[SwitchB-GigabitEthernet0/0/1] quit

    # Configure VLANIF 10 to work in global address pool mode.

    [SwitchB] interface vlanif 10[SwitchB-Vlanif10] ip address 192.168.1.1 24[SwitchB-Vlanif10] dhcp select global[SwitchB-Vlanif10] quit

    # Create an address pool and set corresponding attributes.

    [SwitchB] ip pool pool1[SwitchB-ip-pool-pool1] network 192.168.1.0 mask 24[SwitchB-ip-pool-pool1] gateway-list 192.168.1.126[SwitchB-ip-pool-pool1] dns-list 192.168.1.2[SwitchB-ip-pool-pool1] excluded-ip-address 192.168.1.2[SwitchB-ip-pool-pool1] quit
  3. Verify the configuration.

    # On interface VLANIF 10, run the display this command to view the BOOTP client configuration.

    [SwitchA-Vlanif10] display this#                                                                                                                                   
    interface Vlanif10                                                                                                                  
     ip address bootp-alloc                                                                                                             
    #                                                                                                                                   
    return
    [SwitchA-Vlanif10] quit

    # After VLANIF 10 obtains an IP address, run the display dhcp client command on SwitchA to view the status of the BOOTP client on VLANIF 10.

    [SwitchA] display dhcp clientBOOTP client lease information on interface Vlanif10 :                          
     Current machine state         : Bound                                          
     Internet address assigned via : BOOTP                                          
     Physical address              : 0018-8201-0987                                 
     IP address                    : 192.168.1.254                                  
     Subnet mask                   : 255.255.255.0                                  
     Gateway ip address            : 192.168.1.126                                  
     Lease obtained at             : 2008-11-06 23:04:47                            
     DNS                           : 192.168.1.2

    # Run the display ip pool command on SwitchB to view the address pool configuration.

    [SwitchB] display ip pool name pool1
      Pool-name      : pool1
      Pool-No        : 0
      Lease          : 1 Days 0 Hours 0 Minutes
      Domain-name    : 192.168.1.2
      DNS-server0    : -
      NBNS-server0   : -
      Netbios-type   : -
      Position       : Local           Status           : Unlocked
      Gateway-0      : 192.168.1.126
      Network        : 192.168.1.0
      Mask           : 255.255.255.0  VPN instance     : --  Logging          : Disable
      Conflicted address recycle interval: -
      Address Statistic: Total       :253       Used        :1                      
                         Idle        :251       Expired     :0                      
                         Conflict    :0         Disable     :1                      
                                                                                    
     -----------------------------------------------------------------------------
             Start           End     Total  Used  Idle(Expired)  Conflict  Disable
     -----------------------------------------------------------------------------
          10.20.20.1    10.20.20.254   253     1        251(0)         0        1
     -----------------------------------------------------------------------------

Configuration Files

  • SwitchA configuration file

    #
    sysname SwitchA
    #
    vlan batch 10
    #
    interface Vlanif10                                                              
     ip address bootp-alloc                                                             
    #                                                                               
    interface GigabitEthernet0/0/1                                                         
     port link-type trunk                                                          
     port trunk allow-pass vlan 10                                                           
    #
    return
  • SwitchB configuration file

    #
    sysname SwitchB
    #
    vlan batch 10
    #
    dhcp enable
    #                                                                               
    dhcp server bootp                                                               
    dhcp server bootp automatic                                                     
    #   
    ip pool pool1
     gateway-list 192.168.1.126
     network 192.168.1.0 mask 255.255.255.0
     dns-list 192.168.1.2
    #
    interface Vlanif10
     ip address 192.168.1.1 255.255.255.0
     dhcp select global
    #                                                                               
    interface GigabitEthernet0/0/1                                                         
     port link-type trunk                                                          
     port trunk allow-pass vlan 10                                                           
    #
    return
View more
  • x
  • convention:

All Answers
Hi,
Kindly wait for a second, our engineers are processing your question and will feedback to you as soon as possible.
View more
  • x
  • convention:

Configuring a BOOTP Client

Networking Requirements

In Figure 4-18, SwitchA functions as a BOOTP client and needs to dynamically obtain an IP address, DNS server address, and gateway address from a DHCP server (SwitchB).

Figure 4-18  Networking diagram for configuring a BOOTP client
download?uuid=80b8a7a46c36413987e782aeb178f271

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure SwitchA as a BOOTP client to dynamically obtain an IP address from the DHCP server.

  2. Create a global address pool on SwitchB and set corresponding attributes.

Procedure

  1. Configure the BOOTP client function on SwitchA.

    # Create VLAN 10 and add GE0/0/1 to VLAN 10.

    <HUAWEI> system-view[HUAWEI] sysname SwitchA[SwitchA] vlan 10[SwitchA-vlan10] quit[SwitchA] interface gigabitethernet 0/0/1[SwitchA-GigabitEthernet0/0/1] port link-type trunk[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 10[SwitchA-GigabitEthernet0/0/1] quit

    # Enable the BOOTP client function on VLANIF 10.

    [SwitchA] interface vlanif 10[SwitchA-Vlanif10] ip address bootp-alloc
  2. Create a global address pool on SwitchB and set corresponding attributes.

    # Enable DHCP.

    <HUAWEI> system-view[HUAWEI] sysname SwitchB[SwitchB] dhcp enable[SwitchB] dhcp server bootp[SwitchB] dhcp server bootp automatic

    # Create VLAN 10 and add GE0/0/1 to VLAN 10.

    [SwitchB] vlan 10[SwitchB-vlan10] quit[SwitchB] interface gigabitethernet 0/0/1[SwitchB-GigabitEthernet0/0/1] port link-type trunk[SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan 10[SwitchB-GigabitEthernet0/0/1] quit

    # Configure VLANIF 10 to work in global address pool mode.

    [SwitchB] interface vlanif 10[SwitchB-Vlanif10] ip address 192.168.1.1 24[SwitchB-Vlanif10] dhcp select global[SwitchB-Vlanif10] quit

    # Create an address pool and set corresponding attributes.

    [SwitchB] ip pool pool1[SwitchB-ip-pool-pool1] network 192.168.1.0 mask 24[SwitchB-ip-pool-pool1] gateway-list 192.168.1.126[SwitchB-ip-pool-pool1] dns-list 192.168.1.2[SwitchB-ip-pool-pool1] excluded-ip-address 192.168.1.2[SwitchB-ip-pool-pool1] quit
  3. Verify the configuration.

    # On interface VLANIF 10, run the display this command to view the BOOTP client configuration.

    [SwitchA-Vlanif10] display this#                                                                                                                                   
    interface Vlanif10                                                                                                                  
     ip address bootp-alloc                                                                                                             
    #                                                                                                                                   
    return
    [SwitchA-Vlanif10] quit

    # After VLANIF 10 obtains an IP address, run the display dhcp client command on SwitchA to view the status of the BOOTP client on VLANIF 10.

    [SwitchA] display dhcp clientBOOTP client lease information on interface Vlanif10 :                          
     Current machine state         : Bound                                          
     Internet address assigned via : BOOTP                                          
     Physical address              : 0018-8201-0987                                 
     IP address                    : 192.168.1.254                                  
     Subnet mask                   : 255.255.255.0                                  
     Gateway ip address            : 192.168.1.126                                  
     Lease obtained at             : 2008-11-06 23:04:47                            
     DNS                           : 192.168.1.2

    # Run the display ip pool command on SwitchB to view the address pool configuration.

    [SwitchB] display ip pool name pool1
      Pool-name      : pool1
      Pool-No        : 0
      Lease          : 1 Days 0 Hours 0 Minutes
      Domain-name    : 192.168.1.2
      DNS-server0    : -
      NBNS-server0   : -
      Netbios-type   : -
      Position       : Local           Status           : Unlocked
      Gateway-0      : 192.168.1.126
      Network        : 192.168.1.0
      Mask           : 255.255.255.0  VPN instance     : --  Logging          : Disable
      Conflicted address recycle interval: -
      Address Statistic: Total       :253       Used        :1                      
                         Idle        :251       Expired     :0                      
                         Conflict    :0         Disable     :1                      
                                                                                    
     -----------------------------------------------------------------------------
             Start           End     Total  Used  Idle(Expired)  Conflict  Disable
     -----------------------------------------------------------------------------
          10.20.20.1    10.20.20.254   253     1        251(0)         0        1
     -----------------------------------------------------------------------------

Configuration Files

  • SwitchA configuration file

    #
    sysname SwitchA
    #
    vlan batch 10
    #
    interface Vlanif10                                                              
     ip address bootp-alloc                                                             
    #                                                                               
    interface GigabitEthernet0/0/1                                                         
     port link-type trunk                                                          
     port trunk allow-pass vlan 10                                                           
    #
    return
  • SwitchB configuration file

    #
    sysname SwitchB
    #
    vlan batch 10
    #
    dhcp enable
    #                                                                               
    dhcp server bootp                                                               
    dhcp server bootp automatic                                                     
    #   
    ip pool pool1
     gateway-list 192.168.1.126
     network 192.168.1.0 mask 255.255.255.0
     dns-list 192.168.1.2
    #
    interface Vlanif10
     ip address 192.168.1.1 255.255.255.0
     dhcp select global
    #                                                                               
    interface GigabitEthernet0/0/1                                                         
     port link-type trunk                                                          
     port trunk allow-pass vlan 10                                                           
    #
    return
View more
  • x
  • convention:

Hi,


This guide will help you.

https://support.huawei.com/enterprise/en/doc/EDOC1100065646/52a99cb2/configuring-a-device-as-a-bootp-client

Configuring a Device as a BOOTP Client


Enabling the BOOTP Client Function


Context

Before a device can function as a BOOTP client, you must enable the BOOTP client function.

After an interface is enabled with the BOOTP client function, the interface can obtain network parameters including the IP address from the DHCP server. If the allocated IP address and IP addresses of other interfaces are on the same network segment, the interface does not use the allocated IP address and does not re-apply for an IP address. To allow the interface to re-apply for an IP address, run the shutdown and then the undo shutdown commands on the interface. Alternatively, run the undo ip address bootp-alloc and then the ip address bootp-alloc commands on the interface.

Procedure

  1. Enter the system view.


    system-view


  2. Enter the interface view or sub-interface view.


    interface interface-type interface-number [.subinterface-number ]


  3. (Optional) On an Ethernet interface, run undo portswitch


    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.


  4. Enable the BOOTP client function.


    ip address bootp-alloc


(Optional) Configuring Attributes

Context

Configuring attributes allows you to specify certain parameters for the BOOTP client.

Procedure

  1. Enter the system view.


    system-view


  2. Enter the interface view or sub-interface view.


    interface interface-type interface-number [.subinterface-number ]


  3. (Optional) On an Ethernet interface, run undo portswitch


    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.


  4. Configure a hostname for the BOOTP client.


    dhcp client hostname hostname

    By default, no hostname is configured for a BOOTP client.

    A hostname allows access to a BOOTP client through a domain name. A domain name consists of a hostname and domain name suffix.


  5. Configure an identifier for the BOOTP client.


    dhcp client client-id client-id

    By default, a client's MAC address is used as its identifier.


(Optional) Configuring Gateway Detection


Context

To enable a BOOTP client to detect the status of the gateway, enable the gateway detection function. A BOOTP client enabled with the gateway detection function sends an ARP Request packet to detect the gateway status after obtaining an IP address. If the BOOTP client receives no ARP Reply packet within the detection period, it considers the gateway address incorrect or the gateway device faulty, and then re-applies for an IP address.

Procedure

  1. Enter the system view.


    system-view


  2. Enter the interface view or sub-interface view.


    interface interface-type interface-number [.subinterface-number ]


  3. (Optional) On an Ethernet interface, run undo portswitch


    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.


  4. Configure the gateway detection function on the BOOTP client.


    dhcp client gateway-detect period period retransmit retransmit timeout time

    By default, the gateway detection function is not configured on a BOOTP client.


(Optional) Configuring a BOOTP Client to Dynamically Obtain Routing Information

Context

To allow a BOOTP client to communicate with other network devices, you need to configure a route in which the next hop address is the gateway address of the client. If the gateway address of the client is dynamically obtained from the DHCP server and the route is statically configured on the client, the static route must be manually modified when the gateway address changes. After the BOOTP client is configured to dynamically obtain routing entries through DHCP, the next hop address in the static route is automatically updated when the gateway address changes, lowering maintenance costs.

A DHCP server can allocate routing entries to BOOTP clients. On a device functioning as the BOOTP client, you can set the priorities of routing entries allocated by the DHCP server so that the BOOTP client can dynamically update its routing table.

Procedure

  1. Enter the system view.


    system-view


  2. Configure the BOOTP client to obtain routing entries through DHCP.


    ip route ip-address { mask | mask-length } interface-type interface-number dhcp [ preference-value  ]

    By default, a BOOTP client does not obtain routing entries through DHCP.


  3. Enter the interface view or sub-interface view.


    interface interface-type interface-number [.subinterface-number ]


  4. (Optional) On an Ethernet interface, run undo portswitch


    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.


  5. Set the priority of routing entries allocated by the DHCP server to BOOTP clients.


    dhcp client default-route preference preference-value

    The default priority of routing entries allocated by the DHCP server to BOOTP clients is 60.


Verifying the DHCP Client Configuration

Procedure

  • On an interface enabled with the DHCP client function, run the display this command to view the configuration of the DHCP client.

  • Run the display dhcp client command to view the status of the DHCP client.


View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.