cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
439
Views
0
Helpful
4
Replies

Router on a Stick - Can't assign IP address on my layer 2 switch

IT
Level 1
Level 1

Hello everyone!

Soon I am going to my exams, and I've heard that we have to setup Router on a Stick. This is all great, but I have some minor difficulities.

Router on a Stick is working, I can ping from one of my PC's with the following IP: 172.10.2.10 to my other PC with the following IP: 172.10.4.10

I've setup SSH aswell, and I have some problems accessing my switch.

I've tried to create another sub-interface on the router with the following IP: 172.10.6.1, and then created a vlan on the switch with the following IP: 172.10.6.5, but I can't seem to come in contact with it.

I've thought about adding switchport access vlan # to my trunk port that's going from the switch to the router, but I have no clue if this will work.

I've attached both router and switch configuration.


Fell free to ask, if I havn't made everything clear.

Thanks in advance!

Best regards

Kristian Berg

1 Accepted Solution

Accepted Solutions

Iulian Vaideanu
Level 4
Level 4

On the switch, IP address 172.10.6.5 should be configured on interface Vlan30, not Vlan5 (because on the router 172.10.6.1 is configured on a subinterface with encapsulation dot1Q 30).

View solution in original post

4 Replies 4

Iulian Vaideanu
Level 4
Level 4

On the switch, IP address 172.10.6.5 should be configured on interface Vlan30, not Vlan5 (because on the router 172.10.6.1 is configured on a subinterface with encapsulation dot1Q 30).

Thank you so much lulian!

My tunnel vision caught me off guard there.

Have a wonderful day

//Kristian

bogdan_butucel
Level 1
Level 1

You need to create SVIs in those VLANs on the switch

interface Vlan10
 ip address 172.10.2.2 255.255.254.0
!
interface Vlan20
 ip address 172.10.4.2 255.255.254.0
!
interface Vlan30
ip address 172.10.6.2 255.255.252.0

					
				
			
			
				
			
			
				
			
			
			
			
			
			
		

imessagefree
Level 1
Level 1

i'll try this method : http://www.192168-ip.com/setup-cisco-router/ but still i did not get any output (Settingup) and setup server can you please guide me?

Thanks 

Kishan Ravi

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card