DHCP LAYER3
Konfigurasi
multilayer switch
Switch>enable
Switch#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name
GURU
Switch(config-vlan)#vlan
20
Switch(config-vlan)#name
SISWA
Switch(config-vlan)#int
fa0/1
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#int
fa0/2
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#int
fa0/3
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#int
fa0/4
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#int
fa0/5
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#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)#sw
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)#do wr
Building
configuration...
[OK]
Switch(config)#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
address 10.10.10.1 255.255.255.0
Switch(config-if)#ex
Switch(config)#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
address 20.20.20.1 255.255.255.0
Switch(config-if)#ex
Switch(config)#do wr
Building
configuration...
[OK]
Switch(config)#ip
routing
Switch(config)#
UNTUK
DHCPNYA:
Switch(config)#ip dhcp
pool vlan_10
Switch(dhcp-config)#net
Switch(dhcp-config)#network
10.10.10.0 255.255.255.0
Switch(dhcp-config)#def
Switch(dhcp-config)#default-router
10.10.10.1
Switch(dhcp-config)#dns-server
8.8.8.8
Switch(dhcp-config)#ex
Switch(config)#ip d
Switch(config)#ip dh
Switch(config)#ip dhcp pool
vlan_20
Switch(dhcp-config)#net
Switch(dhcp-config)#network
20.20.20.0 255.255.255.0
Switch(dhcp-config)#def
Switch(dhcp-config)#default-router
20.20.20.1
Switch(dhcp-config)#dns-server
8.8.8.8
Switch(dhcp-config)#ex







0 komentar:
Posting Komentar