cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15190
Views
1
Helpful
3
Replies

How to configure Cisco 9300 Access switch  to give out IPs through DHCP

gaskin.fsankoh
Level 1
Level 1

How to configure Cisco 9300 Access switch  to give out IPs through DHCP

 

3 Replies 3

luis_cordova
VIP Alumni
VIP Alumni

Hi @gaskin.fsankoh ,

 

Maybe this link can give some help:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-4/dhcp-12-4-book/config-dhcp-server.html

 

Step 3ip dhcp excluded-address low-address [high-address


Example:

Router(config)# ip dhcp excluded-address 172.16.1.100 172.16.1.103

 

Specifies the IP addresses that the DHCP server should not assign to DHCP clients.

 

 

Step 3ip dhcp poolname 


Example:

Router(config)# ip dhcp pool 1

 

Creates a name for the DHCP server address pool and enters DHCP pool configuration mode.

 
Step 6networknetwork-number [{mask| /prefix-length} [secondary]] 


Example:

Router(dhcp-config)# network 172.16.0.0 /16

 

Specifies the subnet network number and mask of the DHCP address pool.

 
Step 8dns-serveraddress[address2 ...address8] 


Example:

Router(dhcp-config)# dns server 172.16.1.103 172.16.2.103

 

Specifies the IP address of a DNS server that is available to a DHCP client.

  • One IP address is required; however, you can specify up to eight IP addresses in one command line.
  • Servers should be listed in order of preference.
 
Step 13default-routeraddress[address2 ...address8] 


Example:

Router(dhcp-config)# default-router 172.16.1.100 172.16.1.101

 

(Optional) Specifies the IP address of the default router for a DHCP client.

  • The IP address should be on the same subnet as the client.
  • One IP address is required; however, you can specify up to eight IP addresses in one command line. These default routers are listed in order of preference; that is, address is the most preferred router, address2 is the next most preferred router, and so on.
  • When a DHCP client requests an IP address, the router--acting as a DHCP server--accesses the default router list to select another router that the DHCP client is to use as the first hop for forwarding messages. After a DHCP client has booted, the client begins sending packets to its default router.
Step 15lease {days[hours[minutes]] | infinite


Example:

Router(dhcp-config)# lease 30

 

(Optional) Specifies the duration of the lease.

  • The default is a one-day lease.
  • The infinite keyword specifies that the duration of the lease is unlimited.
 

 

Regards

Philip D'Ath
VIP Alumni
VIP Alumni

You should be able to do something like:

 

Exclude any addresses you don't want given out.

ip dhcp excluded-address 192.168.x.254
ip dhcp excluded-address 192.168.x.200 192.168.x.254

 

Then create a DHCP pool.  You must have a layer 3 interface in the range defined.

 

ip dhcp pool dhcppool
  network 192.168.x.0 255.255.255.0
  default-router 192.168.x.254
  dns-server a.b.c.d a.b.e.f
  update arp

balaji.bandi
Hall of Fame
Hall of Fame

Adding to other post :

 

I was not sure you looking to setup a DHCP Server in Cat 9300 or use your own DHCP Server and hand over IP address who are connected to Cat 9300 Switch ?

 

i assume you looking for device connected to Cat 9300 need IP address from your DHCP Server.

 

Then 

 

config t
!
interface vlan X (or your uplink port)
ip helper-address y.y.y.y ( Y is the your DHCP server)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help