Lab.13 CCNA Cara konfigurasi Router in on Stick ROS - Jaringan yang menggunakan VLAN tentu akan mempunyai subnet/segmen yang berbeda. Diperlukan layer 3 untuk melakukan forward traffic antar segment tersebut.
Selain menggunakan router, untuk menghubungkan subnet/segmen satu dengan lainya bisa menggunakan interface dalam switch atau dengan kata lain menggunakan switch layer 3.
S1#configure terminal
S1(config-vlan)#vlan 10
S1(config-vlan)#vlan 30
S1(config)#interface fastEthernet 0/11
S1(config-if)#switchport access vlan 10
S1(config-if)#exit
S1(config)#interface fastEthernet 0/6
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 30
S1#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- ---------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig0/1, Gig0/2
10 VLAN0010 active Fa0/11
30 VLAN0030 active Fa0/6
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
S1(config)#interface gigabitEthernet 0/1
S1(config-if)#switchport mode trunk
S1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
S1(config-if)#
Kemudian berpindah ke S1, buat subinterface dari gigabit ethernet 0/0, yang akan menjebatani masing-masing VLAN agar bisa berkomunikasi.
R1#configure terminal
R1(config)#interface gigabitEthernet 0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 172.17.10.1 255.255.255.0
R1(config-subif)#exit
R1(config)#interface gigabitEthernet 0/0.30
R1(config-subif)#encapsulation dot1Q 30
R1(config-subif)#ip address 172.17.30.1 255.255.255.0
R1(config-subif)#exit
R1(config)#interface gigabitEthernet 0/0
R1(config-if)#no shutdown
Pengujian dilakukan dengan melakukan ping antar PC
C:\>ping 172.17.30.10
Pinging 172.17.30.10 with 32 bytes of data:
Reply from 172.17.30.10: bytes=32 time=1ms TTL=127
Reply from 172.17.30.10: bytes=32 time=1ms TTL=127
Reply from 172.17.30.10: bytes=32 time<1ms 172.17.30.10:="" approximate="" average="0ms" bytes="32" code="" for="" from="" in="" loss="" lost="0" maximum="1ms," milli-seconds:="" minimum="0ms," ms="" packets:="" ping="" received="4," reply="" round="" sent="4," statistics="" time="" times="" trip="" ttl="127">1ms>
0 comments:
Post a Comment