Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Commands for Cisco Switch for DHCP 1. enable 2. config t 3. interface vlan1 4.

ip address <switch ip address> <switch subnet mask> 5. no shutdown 6. exit (2x) 7. copy run start (ENTER 2x) 8. config t 9. ip default-gateway <ip of router> 10. exit 11. copy run start 12. show ip interface brief 13. ping <ip address of router> 14. exit 15. network Commands for Cisco Router for DHCP 1. no 2. enable 3. config t 4. interface gigabit ethernet 0/0 5. ip address <router ip address> <router subnet mask> 6. no shutdown 7. enable 8. exit (3x) 9. config t 10. service dhcp 11. ip dhcp pool 12. network <default ip address> <default subnet mask> 13. default-router <router ip address> 14. dns-server <ip of 1st DNS server> 15. dns-server <ip of 2nd DNS server> 16. domain <domain name> 17. lease 9 18. exit 19. ip dhcp excluded-address <ip of router> 20. ip dhcp excluded-address <ip of 1st DNS server> 21. ip dhcp excluded-address <ip of 2nd DNS server>

22. exit 23. copy run start 24. config t 25. interface gigabit Ethernet 0/0 26. no shutdown 27. exit Legend switch ip address = 192.168.10.253 switch subnet mask = 255.255.255.0 router ip address = 192.168.10.170 default ip address = 192.168.10.0 default subnet mask = 255.255.255.0 ip of 1st DNS server = 192.168.10.100 ip of 2nd DNS server = 192.168.10.200 domain name = www.beeware.com

You might also like