cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1306
Views
0
Helpful
2
Replies

ROAS (Router on a Stick) VLAN pinging issue - 1 switch, 1 router

The51stAgent
Level 1
Level 1

Hey guys. Hope everyone is doing well in these crazy times. I attempted to set up a Router on a Stick setup via instructions on youtube. The instructor did so on packet tracer but I wanted to give it a go on my physical lab. Unfortunately, after completing his tutorial, I cannot ping between the different vlans (each on it's own physical interface on my switch). To clarify, I am trying to set things up as pictured below and as far as I can tell, I have things configured identically. I only have two laptops to use as hosts so I figured if I just plug one int fa0/2 and fa0/3 on the switch, I should be able to ping between both but it won't work. This is not an issue of firewalls blocking pings. It is something in my config but I just don't know what. I made sure to set up trunking and encapsulation. Below the pic is my router and switch configs. Is it possible there are leftover configs on my switch or router that could be mucking up the works? Also, does what is displaying in the show ip route command look correct for router? I don't know why there is mention of /32 subnets when all I have entered at any point has been 255.255.255.0 masks. Thank you fellas!

Screen Shot 2020-04-22 at 4.51.40 PM.png

 

Router configs

ROAS_Router#show running-config

Building configuration...

 

Current configuration : 1544 bytes

!

! Last configuration change at 20:01:41 UTC Wed Apr 22 2020

version 15.1

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname ROAS_Router

!

boot-start-marker

boot-end-marker

!

!

!

no aaa new-model

!

dot11 syslog

ip source-route

!

!

!

!

!

ip cef

no ipv6 cef

!

multilink bundle-name authenticated

!

crypto pki token default removal timeout 0

!

!

!

!

license udi pid CISCO1841 sn FTX144200UG

!

redundancy

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

ip address 192.168.1.3 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 192.168.10.1 255.255.255.0

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 192.168.20.1 255.255.255.0

!

interface FastEthernet0/0.30

encapsulation dot1Q 30

ip address 192.168.30.1 255.255.255.0

!

interface FastEthernet0/0.55

encapsulation dot1Q 55

ip address 192.168.55.1 255.255.255.0

!

interface FastEthernet0/0.77

encapsulation dot1Q 77

ip address 192.168.77.1 255.255.255.0

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0/0

no ip address

shutdown

no fair-queue

!

interface Serial0/1/0

no ip address

shutdown

!

ip default-gateway 192.168.77.1

ip forward-protocol nd

no ip http server

no ip http secure-server

!

!

ip route 192.168.1.0 255.255.255.0 192.168.2.2

!

!

!

!

!

!

!

control-plane

!

!

!

line con 0

logging synchronous

line aux 0

line vty 0 4

login

transport input all

!

scheduler allocate 20000 1000

end
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

ROAS_Router#show ip route

Codes: L - local, C - connected, S - static, 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

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

o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP

+ - replicated route, % - next hop override

 

Gateway of last resort is not set

 

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/24 is directly connected, FastEthernet0/0

L 192.168.1.3/32 is directly connected, FastEthernet0/0

192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.10.0/24 is directly connected, FastEthernet0/0.10

L 192.168.10.1/32 is directly connected, FastEthernet0/0.10

192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.20.0/24 is directly connected, FastEthernet0/0.20

L 192.168.20.1/32 is directly connected, FastEthernet0/0.20

192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.30.0/24 is directly connected, FastEthernet0/0.30

L 192.168.30.1/32 is directly connected, FastEthernet0/0.30

192.168.55.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.55.0/24 is directly connected, FastEthernet0/0.55

L 192.168.55.1/32 is directly connected, FastEthernet0/0.55

192.168.77.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.77.0/24 is directly connected, FastEthernet0/0.77

L 192.168.77.1/32 is directly connected, FastEthernet0/0.77

 

Switch configs

Switch#show running-config

Building configuration...

 

Current configuration : 1678 bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Switch

!

!

no aaa new-model

system mtu routing 1500

ip subnet-zero

!

!

!

!

!

!

no file verify auto

spanning-tree mode pvst

spanning-tree extend system-id

!

vlan internal allocation policy ascending

!

interface FastEthernet0/1

switchport trunk native vlan 55

switchport trunk allowed vlan 1,10,20,30,55,77

switchport mode trunk

!

interface FastEthernet0/2

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/3

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/4

switchport access vlan 30

switchport mode access

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

no ip route-cache

shutdown

!

interface Vlan77

ip address 192.168.77.2 255.255.255.0

no ip route-cache

!

ip default-gateway 192.168.77.1

ip http server

ip http secure-server

!

control-plane

!

!

line con 0

line vty 0 4

login

line vty 5 15

login

!

end

 

Switch#show vlan

 

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active 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/21

Fa0/22, Fa0/23, Fa0/24, Gi0/1

Gi0/2

10 students active Fa0/2

20 faculty active Fa0/3, Fa0/20

30 administration active Fa0/4

55 native active

77 management active

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

30 enet 100030 1500 - - - - - 0 0

 

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

55 enet 100055 1500 - - - - - 0 0

77 enet 100077 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

 

Remote SPAN VLANs

------------------------------------------------------------------------------

 

 

Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

 

Switch#show interface trunk

 

Port Mode Encapsulation Status Native vlan

Fa0/1 on 802.1q trunking 55

 

Port Vlans allowed on trunk

Fa0/1 1,10,20,30,55,77

 

Port Vlans allowed and active in management domain

Fa0/1 1,10,20,30,55,77

 

Port Vlans in spanning tree forwarding state and not pruned

Fa0/1 1,10,20,30,55,77

 

1 Accepted Solution

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

I don't know why there is mention of /32 subnets when all I have entered at any point has been 255.255.255.0 masks.

The /32 you see on the routing table is just a host address you have configured for each sub-interface. So, that is not an issue.

The config overall looks good.

interface FastEthernet0/0

ip address 192.168.1.3 255.255.255.0

duplex auto

speed auto

Can you delete the IP address from the main interface (fa0/0) and than test?

Also, if this does not help, do you see the mac address for each laptop on the switch for port fa0/2 and 3?

If, yes, can you ping the router from the switch?

If no, can you ping the switch from the router? ?

Are ports fa0/2 and 3 in up and up mode. sh ip int bri int fa0/2

Also, can you configure the same native vlan you have on the switch on the router as well (55)?

HTH

 

 

View solution in original post

2 Replies 2

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

I don't know why there is mention of /32 subnets when all I have entered at any point has been 255.255.255.0 masks.

The /32 you see on the routing table is just a host address you have configured for each sub-interface. So, that is not an issue.

The config overall looks good.

interface FastEthernet0/0

ip address 192.168.1.3 255.255.255.0

duplex auto

speed auto

Can you delete the IP address from the main interface (fa0/0) and than test?

Also, if this does not help, do you see the mac address for each laptop on the switch for port fa0/2 and 3?

If, yes, can you ping the router from the switch?

If no, can you ping the switch from the router? ?

Are ports fa0/2 and 3 in up and up mode. sh ip int bri int fa0/2

Also, can you configure the same native vlan you have on the switch on the router as well (55)?

HTH

 

 

Thank you! I think I forgot to do a no shutdown on a few of the switch interfaces. For some reason, I still can't ping to everything but when I recreated the ROAS in Packet Tracer, it worked perfectly and I could ping evertyhing from any VLAN. I might try to start over with the physical equipment but I think I should be good now. Thank you!

Review Cisco Networking for a $25 gift card