• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

Switch between two routers

Hi all,

I have cisco router connected to cisco switch by trunk port to pass all vlans and dhcp, I want to connect second router using one port of the switch which ip should I assign to the router and what port mode should I assign to the switch to get communications between two routers

Thanks
0
lexmark1
Asked:
lexmark1
  • 4
  • 2
1 Solution
 
pergrCommented:
If you want the new router to communicate with the old router on only one VLAN, then you preferably configure the switch port as an 'access' port, for that VLAN.

If you want the new router to communicate on all VLANS (for example if you want to run HSRP) then the ports on switch and new router should be configured in the same way as for the old router.

The IP to use in the new router should be in the same subnet as the IP on the old router - on the relevant VLAN. You should also make sure that IP is not included in the DHCP pool on the old router.
0
 
lexmark1Author Commented:
Hi pergr,

This is my router configuration:

Oldrouter# ip dhcp pool vlan-2
Oldrouter# network 255.255.255.0
Oldrouter# ip default 10.10.20.1
Oldrouter# interfase gig0/1.2
Oldrouter# ip add 10.10.20.1 255.255.255.0
Oldrouter# inter gig0/1
Oldrouter# no shutdown

Connected to the switch with trunk port

Now for the new router which ip should I give and what switch port mode?

Thanks
0
 
pergrCommented:
What do you want to do with the router?
What traffic do you want to route?
Do you have a topology diagram?
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
lexmark1Author Commented:
Hi pergr,

Please see my attachment.

Thanks
Network-Design.jpg
0
 
lexmark1Author Commented:
I solved this problem
0
 
lexmark1Author Commented:
My one is solved the problem
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now