Lab.9 Cara Menghubungkan Router ke Switch
Assalamu'alaikum Wr. WB.
Kali ini kita akan membahas mengenai cisco. Materi CCNA
Mari Kita lihat sketsa gambarnya
Config ROUTER
Router(config-if)#int fa0/0.10
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 10.10.10.1 255.255.255.0
Router(config-subif)#int fa0/0.20
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 20.20.20.1 255.255.255.0
Router(config-subif)#ip dhcp pool vlan10
Router(dhcp-config)#default-router 10.10.10.1
Router(dhcp-config)#network 10.10.10.0 255.255.255.0
Router(dhcp-config)#ip dhcp pool vlan20
Router(dhcp-config)#default-router 20.20.20.1
Router(dhcp-config)#network 20.20.20.0 255.255.255.0
Router(dhcp-config)#
Config SWITCH1
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#int f0/2
Switch(config-if)#sw acc vlan 10
Switch(config-if)#int f0/3
Switch(config-if)#sw acc vlan 20
Switch(config-if)#do sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
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, Gig1/1, Gig1/2
10 VLAN0010 active Fa0/2
20 VLAN0020 active Fa0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
Switch(config-if)#int f0/4
Switch(config-if)#sw mode tr
Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
Switch(config-if)#
Config SWITCH2
Switch(config)#int f0/3
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#int f0/1
Switch(config-if)#sw acc vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#sw acc vlan 20
Switch(config-if)#
dan silahkan di
Kali ini kita akan membahas mengenai cisco. Materi CCNA
Mari Kita lihat sketsa gambarnya
Config ROUTER
Router(config-if)#int fa0/0.10
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 10.10.10.1 255.255.255.0
Router(config-subif)#int fa0/0.20
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 20.20.20.1 255.255.255.0
Router(config-subif)#ip dhcp pool vlan10
Router(dhcp-config)#default-router 10.10.10.1
Router(dhcp-config)#network 10.10.10.0 255.255.255.0
Router(dhcp-config)#ip dhcp pool vlan20
Router(dhcp-config)#default-router 20.20.20.1
Router(dhcp-config)#network 20.20.20.0 255.255.255.0
Router(dhcp-config)#
Config SWITCH1
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#int f0/2
Switch(config-if)#sw acc vlan 10
Switch(config-if)#int f0/3
Switch(config-if)#sw acc vlan 20
Switch(config-if)#do sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
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, Gig1/1, Gig1/2
10 VLAN0010 active Fa0/2
20 VLAN0020 active Fa0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
Switch(config-if)#int f0/4
Switch(config-if)#sw mode tr
Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
Switch(config-if)#
Config SWITCH2
Switch(config)#int f0/3
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#int f0/1
Switch(config-if)#sw acc vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#sw acc vlan 20
Switch(config-if)#
dan silahkan di
0 comments