Objective 1:-
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip dhcp pool LAB_POOL2
R1(dhcp-config)#network 10.116.20.0 255.255.255.0
R1(dhcp-config)#default-router 10.116.20.2
R1(dhcp-config)#domain-name TESTLAB.LOCAL
R1(dhcp-config)#dns-server 10.116.18.6 10.116.18.7
R1(dhcp-config)#end
This a very basic DHCP setting in a router.
Review Last Tutorial
Objective 2. – On SWITCH 1 configure the VLAN20 interface with an IP Helper address that points to 10.116.10.1.
SW1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface vlan 20
SW1(config-if)#ip helper-address 10.116.10.1
SW1(config-if)#end
SW1#
%SYS-5-CONFIG_I: Configured from console by console
SW1#
Objective 3. – Verify that R2 can receive a DHCP address from R1 in the 10.116.20.0/24 network.
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface FastEthernet0/0
R2(config-if)#shutdown
R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
R2(config-if)#no shut
R2(config-if)#end
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2#
%DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 10.116.20.3, mask 255.255.255.0, hostname R2
R2#ping 10.116.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.116.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/108/164 ms
R2#

No comments:
Post a Comment