cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
197
Views
0
Helpful
4
Replies
IT
Beginner
Beginner

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

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
Enthusiast

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
Enthusiast

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

Thank you so much lulian!

My tunnel vision caught me off guard there.

Have a wonderful day

//Kristian

bogdan_butucel
Beginner

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
Beginner

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