User Tools

Site Tools


dhcp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dhcp [2024/03/14 21:45]
114.119.155.78 old revision restored (2023/11/03 14:09)
dhcp [2024/05/21 23:47]
127.0.0.1 external edit
Line 1: Line 1:
 =====DHCP===== =====DHCP=====
 +Use DHCP to address automatic IP assignment within a network.
 +
 ====Configuration==== ====Configuration====
 Below is the configuration for DHCP in Cisco's IOS.  Below is the configuration for DHCP in Cisco's IOS. 
  
 <code> <code>
-R1(dhcp-config)#do sh run | s dhcp  +R1#sh run | s dhcp 
-no ip dhcp use vrf connected                         # VRFs to be covered in CCNP +ip dhcp excluded-address 192.168.0.1 192.168.0.49 
-ip dhcp excluded-address 192.168.1.1 192.168.1.49    # exclude range START STOP +ip dhcp pool MYNETWORK 
-ip dhcp excluded-address 172.16.0.1                  # exclude single ADDR +   network 192.168.0.0 255.255.255.0 
-ip dhcp pool LAN                                     # Define a pool +   default-router 192.168.0.1  
-   network 192.168.1.0 255.255.255.0                 # Network scope to lease from +R1#
-   next-server 1.2.3.4                               # TFTP Server Opt +
-   default-router 192.168.1.1                        # Default GW +
-   dns-server 192.168.1.1                            # Default DNS +
-   lease 0 23 59                                     Lease DAYS HRS MINS+
 </code> </code>
  
Line 23: Line 21:
 interface FastEthernet0/1 interface FastEthernet0/1
  ip address 172.16.0.1 255.255.255.0  ip address 172.16.0.1 255.255.255.0
- ip helper-address 192.168.1.1           # Specifies Server to forward requests to+ ip helper-address 192.168.1.1
  duplex auto  duplex auto
  speed auto  speed auto
dhcp.txt · Last modified: 2024/07/01 02:33 by 114.119.141.71