Anda di halaman 1dari 4

InterVLAN Routing

 Menggunakan Switch layer 3


Konfigurasi Switch Layer 3 :
S.Core(config)#ip routing
S.Core(config)#int vlan 10
S.Core(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
S.Core(config-if)#ip add 172.17.1.1 255.255.255.0
S.Core(config-if)#exit
S.Core(config)#int vlan 20
S.Core(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
S.Core(config-if)#ip add 172.17.2.1 255.255.255.0

Mengecek Routing tabel :


S.Core#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter
area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set

172.17.0.0/24 is subnetted, 2 subnets


C 172.17.1.0 is directly connected, Vlan10
C 172.17.2.0 is directly connected, Vlan20
S.Core#

 Menggunakan Router (Router On A Stick)


Konfigurasi vlan di switch :
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S.Core
S.Core(config)#vlan 10
S.Core(config-vlan)#name LAB-A
S.Core(config-vlan)#exit
S.Core(config)#vlan 20
S.Core(config-vlan)#name LAB-B
S.Core(config)#vlan 88
S.Core(config-vlan)#name native-management
S.Core(config-vlan)#exit
S.Core(config)#int vlan 88
S.Core(config-if)#
%LINK-5-CHANGED: Interface Vlan88, changed state to up
S.Core(config-if)#ip address 10.10.10.2 255.255.255.252
S.Core(config-if)#exit
S.Core(config)#ip default-gateway 10.10.10.1
S.Core(config)#int f0/1
S.Core(config-if)#switchport mode access
S.Core(config-if)#switchport access vlan 10
S.Core(config-if)#int f0/24
S.Core(config-if)#switchport mode access
S.Core(config-if)#switchport access vlan 20
S.Core(config-if)#exit
S.Core(config)#int f0/10
S.Core(config-if)#switchport mode trunk
S.Core(config-if)#switchport trunk native vlan 88

Konfigurasi Router :
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R.Cre(config)#hostname R.Core
R.Core(config)#int f0/0.10
R.Core(config-subif)#encapsulation dot1Q 10
R.Core(config-subif)#ip add 172.17.10.1 255.255.255.0
R.Core(config-subif)#exit
R.Core(config)#int f0/0.20
R.Core(config-subif)#encapsulation dot1Q 20
R.Core(config-subif)#ip add 172.17.20.1 255.255.255.0
R.Core(config-subif)#exit
R.Core(config)#int f0/0.88
R.Core(config-subif)#encapsulation dot1Q 88 native
R.Core(config-subif)#ip add 10.10.10.1 255.255.255.252
R.Core(config-subif)#exit
R.Core(config)#int f0/0
R.Core(config-if)#no shut

Tabel routing :
R.Core#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter
area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 1 subnets


C 10.10.10.0 is directly connected, FastEthernet0/0.88
172.17.0.0/24 is subnetted, 2 subnets
C 172.17.10.0 is directly connected, FastEthernet0/0.10
C 172.17.20.0 is directly connected, FastEthernet0/0.20

Anda mungkin juga menyukai