Memberikan IP Vlan
GATEWAY(config)#int g0/1
GATEWAY(config-if)#no sh
GATEWAY(config)#g0/1.10
GATEWAY(config-subif)#encapsulation dot1Q 10
GATEWAY(config-subif)#ip add 192.168.10.1 255.255.255.0
GATEWAY(config-subif)#int g0/1.20
GATEWAY(config-subif)#encapsulation dot1Q 20
GATEWAY(config-subif)#ip add 192.168.20.1 255.255.255.0
GATEWAY(config-subif)#int g0/1.30
GATEWAY(config-subif)#encapsulation dot1Q 30
GATEWAY(config-subif)#ip add 192.168.30.1 255.255.255.0
GATEWAY(config-subif)#int g0/1.40
GATEWAY(config-subif)#encapsulation dot1Q 40
GATEWAY(config-subif)#ip add 192.168.40.1 255.255.255.0
GATEWAY(config-subif)#int g0/1.50
GATEWAY(config-subif)#ip add 192.168.50.1 255.255.255.0
GATEWAY(config-subif)#do sh ip int br
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES unset administratively down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/1.10 192.168.10.1 YES manual up up
GigabitEthernet0/1.20 192.168.20.1 YES manual up up
GigabitEthernet0/1.30 192.168.30.1 YES manual up up
GigabitEthernet0/1.40 192.168.40.1 YES manual up up
GigabitEthernet0/1.50 192.168.50.1 YES manual up up
Vlan1 unassigned YES unset administratively down down