Langsung aja gan
Topologi Seperti diatas
Switch :
Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#name TKJ Switch(config-vlan)#vlan 20 Switch(config-vlan)#name MM Switch(config-vlan)# Switch(config-vlan)#int fa0/1 Switch(config-if)#sw mod ac Switch(config-if)#sw ac vl 10 Switch(config-if)#int fa0/2 Switch(config-if)#sw mod ac Switch(config-if)#sw ac vl 10 Switch(config-if)#int fa0/3 Switch(config-if)#sw mod ac Switch(config-if)#sw ac vl 20 Switch(config-if)#int fa0/4 Switch(config-if)#sw mod ac Switch(config-if)#sw ac vl 20 Switch(config-if)#int vlan 10 Switch(config-if)# %LINK-5-CHANGED: Interface Vlan10, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up Switch(config-if)#ip add 200.100.10.1 255.255.255.248 Switch(config-if)#int vlan 20 Switch(config-if)# %LINK-5-CHANGED: Interface Vlan20, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up Switch(config-if)#ip add 200.100.20.1 255.255.255.248 Switch(config-if)# Switch(config-if)#ip routing Switch(config)#ip dhcp pool TKJ Switch(dhcp-config)#net 200.100.10.0 255.255.255.248 Switch(dhcp-config)#def 200.100.10.1 Switch(dhcp-config)#dns 8.8.8.8 Switch(dhcp-config)#ip dhcp pool MM Switch(dhcp-config)#net 200.100.20.0 255.255.255.248 Switch(dhcp-config)#def 200.100.20.1 Switch(dhcp-config)#dns 8.8.8.8 Switch(dhcp-config)#do wr Building configuration... [OK]Semua PC pasti mendapatkan Ip DHCP Gan Oke Sekian Terima Kasih