DHCP swicth layer 3
KONFIGURASI SWICTHNYA :
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#name guru
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name siswa
Switch(config-vlan)#ex
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/6
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/7
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/8
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/9
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/10
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#int vlan 10
Switch(config-if)#ip address 10.10.10.1
255.255.255.0
Switch(config-if)#ex
Switch(config)#int vlan 20
Switch(config-if)#ip address 20.20.20.1
255.255.255.0
Switch(config-if)#ex
Switch(config)#ip routing
Switch(config)#do wr
- Untuk DHCP-nya tambah konfigurasi seperti
di bawah ini :
Switch(config)#ip dhcp pool vlan_10
Switch(dhcp-config)#network 10.10.10.0
255.255.255.0
Switch(dhcp-config)#default-router
10.10.10.1
Switch(dhcp-config)#ex
Switch(config)#ip dhcp pool vlan_20
Switch(dhcp-config)#network 20.20.20.0 255.255.255.0
Switch(dhcp-config)#default-router
20.20.20.1
Swicth(dhcp-config)#dns-server 8.8.8.8
Switch(dhcp-config)#ex







0 comments:
Post a Comment