05-08-2019 02:06 PM
How to configure Cisco 9300 Access switch to give out IPs through DHCP
05-08-2019 02:45 PM
Hi @gaskin.fsankoh ,
Maybe this link can give some help:
Step 3 | ip 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 3 | ip 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 6 | networknetwork-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 8 | dns-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.
|
Step 13 | default-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.
|
Step 15 | lease {days[hours[minutes]] | infinite} Example: Router(dhcp-config)# lease 30 | (Optional) Specifies the duration of the lease.
|
Regards
05-08-2019 06:54 PM
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
05-08-2019 11:19 PM
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)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide