Wednesday, November 27, 2013

Create DHCP on Cisco

Berikut ini adalah perintah untuk membuatkan ip dhcp pada Cisco (Packet Tracer):

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip dhcp pool 192.168.10.0/24
Router(dhcp-config)#network 192.168.10.1 255.255.255.0
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 192.168.10.2 192.168.10.100
Router(config)#ip dhcp excluded-address 192.168.10.150 192.168.10.200
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.10.2 255.255.255.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router#
%SYS-5-CONFIG_I: Configured from console by console

No comments:

Post a Comment