06-11-2020 03:19 AM
06-11-2020 03:25 AM
Hi
Router(config)#ip dhcp pool internal | Creates a DHCP pool called internal. |
Router(dhcp-config)#network 172.16.10.0 255.255.255.0 | Defines the range of addresses to be leased. |
Router(dhcp-config)#default-router 172.16.10.1 | Defines the address of the default router for the client. |
Router(dhcp-config)#dns-server 172.16.10.10 | Defines the address of the Domain Name System (DNS) server for the client. |
06-11-2020 03:33 AM
Hello,
this is pretty straightforward. Just create a DHCP pool for each (VLAN) interface. A sample file is attached...
ip routing
!
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.2.1
ip dhcp excluded-address 192.168.3.1
!
ip dhcp pool VLAN1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
!
ip dhcp pool VLAN2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 8.8.8.8
!
ip dhcp pool VLAN3
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
dns-server 8.8.8.8
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
mac-address 0090.21b5.b101
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
mac-address 0090.21b5.b102
ip address 192.168.3.1 255.255.255.0
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