0% found this document useful (0 votes)
65 views

Of Technology: Router On A Stick

This document describes configuring a router on a stick using a single physical interface on a router to provide connectivity for multiple VLANs. Port Fa0/3 on SwitchA is configured as a trunk port allowing VLANs 10 and 20. On RouterA, subinterfaces are created for VLANs 10 and 20 and assigned IP addresses to allow routing between the VLANs. SVI configuration on SwitchA provides IP addresses for each VLAN to allow layer 3 routing without a router.

Uploaded by

hekri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Of Technology: Router On A Stick

This document describes configuring a router on a stick using a single physical interface on a router to provide connectivity for multiple VLANs. Port Fa0/3 on SwitchA is configured as a trunk port allowing VLANs 10 and 20. On RouterA, subinterfaces are created for VLANs 10 and 20 and assigned IP addresses to allow routing between the VLANs. SVI configuration on SwitchA provides IP addresses for each VLAN to allow layer 3 routing without a router.

Uploaded by

hekri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

y

og
Router on a Stick

ol
hn
ec
fT
ro
te
en
C
na

SwitchA(config)#interface fa0/3
SwitchA(config-if)#switchport trunk encapsulation dot1q
SwitchA(config-if)#switchport mode trunk
SwitchA(config-if)#switchport trunk allowed vlan 10,20
RouterA(config)#interface fa0/0
ira

RouterA(config-if)#no shut
RouterA(config)#interface fa0/0.10
y
RouterA(config-subif)#encapsulation dot1Q 10

og
RouterA(config-subif)#ip address 192.168.10.254 255.255.255.0
RouterA(config)#interface fa0/0.20
RouterA(config-subif)#encapsulation dot1Q 20
RouterA(config-subif)#ip address 192.168.20.254 255.255.255.0
RouterA#show ip route

ol
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

hn
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route

ec
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.10.0/24 is directly connected, FastEthernet0/0.10

fT
C 192.168.20.0/24 is directly connected, FastEthernet0/0.20

Mos harroni të vini adresat IP për default gateway në kompjutera

ro
Provoni të bëni një ping:
te
C:Documents and SettingsComputerA>ping 192.168.20.1
en
Pinging 192.168.20.1 with 32 bytes of data:

Reply from 192.168.20.1: bytes=32 time<1ms TTL=128


Reply from 192.168.20.1: bytes=32 time<1ms TTL=128
C

Reply from 192.168.20.1: bytes=32 time<1ms TTL=128


Reply from 192.168.20.1: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.1.2:


na

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),


Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
ira
y
SVI (Switch Virtual Interface)

og
ol
hn
ec
fT
ro
te
en

SwitchA(config)#ip routing
C

SwitchA(config)#interface vlan 10
SwitchA(config-if)#no shutdown
SwitchA(config-if)#ip address 192.168.10.254 255.255.255.0
SwitchA(config)#interface vlan 20
na

SwitchA(config-if)#no shutdown
SwitchA(config-if)#ip address 192.168.20.254 255.255.255.0
SwitchA#showip interface brief vlan 10
Interface IP-Address OK? Method Status Protocol
Vlan10 192.168.10.254 YES manual up up
ira

SwitchA#showip interface brief vlan 10


Interface IP-Address OK? Method Status Protocol
Vlan10 192.168.10.254 YES manual up down
y
og
ol
Provoni të komunikoni midis kompjuterave të vlane-ve të ndryshme

hn
Genti Mejdani

Tirana Center of Technology

ec
fT
ro
te
en
C
na
ira

You might also like