Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Switch(config)# ip dhcp pool DHCP-Vlan1
Switch(dhcp-config)# network 172.16.100.1 /24
Switch(dhcp-config)# domain-name example.com
Switch(dhcp-config)# dns-server 172.16.0.10 172.16.0.11
Switch(dhcp-config)# default-router 172.16.100.254
Switch(dhcp-config)# lease 7
Switch(dhcp-config)# exit
Switch(config)# ip dhcp pool DHCP-Vlan2
Switch(dhcp-config)# network 172.16.200.1 /24
Switch(dhcp-config)# domain-name example.com
Switch(dhcp-config)# dns-server 172.16.0.10 172.16.0.11
Switch(dhcp-config)# default-router 172.16.200.254
Switch(dhcp-config)# lease 7
Switch(dhcp-config)# exit
Switch(config)# interface vlan1
Switch(config-if)# ip address 172.16.100.1 255.255.255.0
Switch(config)# interface vlan2
Switch(config-if)# ip address 172.16.200.1 255.255.255.0
Switch(config-if)# end
Switch# show ip dhcp binding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.