Mục tiêu thực hành:
- Kích hoạt chức năng DHCP Client trên interface e0/1 của Cisco Router.
- Kiểm tra địa chỉ IP xin được từ DHCP Server trên interface e0/1 của Cisco Router.
- Kiểm tra thông tin Default Gateway xin được từ DHCP Server trên interface e0/1 của Cisco Router.
- Kiểm tra thông tin Default Route tự động phát sinh sau khi kích hoạt chức năng DHCP Client trên interface e0/1 của Cisco Router.
- Thực hiện tác vụ ping ra ngoài Internet để kiểm tra kết nối.
Truy cập vào "Lab 5-1 - Cau hinh chuc nang DHCP Client tren Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Kích hoạt chức năng DHCP Client trên interface e0/1 của Cisco Router.
Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface e0/1Router(config-if)#ip address dhcpRouter(config-if)#no shutdownRouter(config-if)#endRouter#*Jan 23 01:34:35.166: %SYS-5-CONFIG_I: Configured from console by console*Jan 23 01:34:39.816: %DHCP-6-ADDRESS_ASSIGN: Interface Ethernet0/1 assigned DHCP address 192.168.100.8, mask 255.255.255.0, hostname RouterRouter#
Kiểm tra địa chỉ IP xin được từ DHCP Server trên interface e0/1 của Cisco Router.
Router#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset administratively down downEthernet0/1 192.168.100.8 YES DHCP up upEthernet0/2 unassigned YES unset administratively down downEthernet0/3 unassigned YES unset administratively down downRouter#
Kiểm tra thông tin Default Gateway xin được từ DHCP Server trên interface e0/1 của Cisco Router.
Router#show dhcp leaseTemp IP addr: 192.168.100.8 for peer on Interface: Ethernet0/1Temp sub net mask: 255.255.255.0DHCP Lease server: 192.168.100.1, state: 5 BoundDHCP transaction id: C37Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secsTemp default-gateway addr: 192.168.100.1Next timer fires after: 11:56:06Retry count: 0 Client-ID: cisco-aabb.cc00.0110-Et0/1Client-ID hex dump: 636973636F2D616162622E636330302E303131302D4574302F31Hostname: RouterRouter#
Kiểm tra thông tin Default Route tự động phát sinh sau khi kích hoạt chức năng DHCP Client trên interface e0/1 của Cisco Router.
Router#show ip route staticCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop overrideGateway of last resort is 192.168.100.1 to network 0.0.0.0S* 0.0.0.0/0 [254/0] via 192.168.100.1Router#
Thực hiện tác vụ ping ra ngoài Internet để kiểm tra kết nối.
Router#ping 192.168.100.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 msRouter#
Router#ping 8.8.4.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 8.8.4.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 30/31/35 msRouter#
Tham khảo các videos lý thuyết Hướng dẫn thực hành CCNA R&S để biết thêm thông tin chi tiết.
0 comments