inter vlan routing
Konfigurasi Switch0:
Switch>ena
Switch#conf
t
Switch(config)#vlan
10
Switch(config-vlan)#name
dosen
Switch(config-vlan)#exit
Switch(config)#vlan
20
Switch(config-vlan)#name
mahasiswa
Switch(config-vlan)#exit
Switch(config)#int
fa0/1
Switch(config-if)#switchport
access vlan 10
Switch(config-if)#exit
Switch(config)#int
fa0/2
Switch(config-if)#switchport
access vlan 20
Switch(config-if)#exit
Switch(config)#int
fa0/23
Switch(config-if)#switchport
mode trunk
Switch(config-if)#exit
Switch(config)#int
fa0/24
Switch(config-if)#switchport
mode trunk
Switch(config-if)#exit
Konfigurasi
Switch1:
Switch>ena
Switch#conf
t
Enter
configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan
10
Switch(config-vlan)#name
dosen
Switch(config-vlan)#exit
Switch(config)#vlan
20
Switch(config-vlan)#name
mahasiswa
Switch(config-vlan)#exit
Switch(config)#int
fa0/1
Switch(config-if)#switchport
access vlan 10
%
Access VLAN does not exist. Creating vlan 10
Switch(config-if)#exit
Switch(config)#int
fa0/2
Switch(config-if)#switchport
access vlan 20
%
Access VLAN does not exist. Creating vlan 20
Switch(config-if)#exit
Switch(config)#int
fa0/24
Switch(config-if)#switchport
mode trunk
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/24, changed state to down
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/24, changed state to up
Switch(config-if)#exit
Konfigurasi
Router0:
Continue
with configuration dialog? [yes/no]: no
Press
RETURN to get started!
Router>ena
Router#conf
t
Enter
configuration commands, one per line. End with CNTL/Z.
Router(config)#int
fa0/0
Router(config-if)#no
ip add
Router(config-if)#no
sh
%LINK-5-CHANGED:
Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int
fa0/0.10
%LINK-5-CHANGED:
Interface FastEthernet0/0.10, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/0.10, changed state to up
Router(config-subif)#encapsulation
dot1q 10
Router(config-subif)#ip
add 192.168.10.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int
fa0/0.20
%LINK-5-CHANGED:
Interface FastEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/0.20, changed state to up
Router(config-subif)#encapsulation
dot1q 20
Router(config-subif)#ip
add 192.168.20.1 255.255.255.0
Router(config-subif)#exit
Tidak ada komentar:
Posting Komentar