cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
5427
Views
46
Helpful
31
Replies

Trunking 2 switches to 1 router

CiscoBrownBelt
Level 6
Level 6

So I have  4000 router I want to trunk to 2x switches. The router has a switchport module in it. I know I can't connect it to one of the normal routed ports because  the switches would be in different networks correct? The 2x switches are for the same networks and is redundancy for servers.

So I have one switch in g0/0 port with all the subinterfaces for the subnets, the other switch in one of the other ports that I configured for trunk.

I can't ping the router from the switch connected to the normal trunk port, only can ping router from switch connected to the g0/0 port with the sub-interfaces.

Is there something special I have to configure here?

If the 2nd switch will have devices in same VLANs as 1st switch, is the way I am doing it a good way or can I just connect it into another normal port let's say g0/1?

31 Replies 31

On your routers, you would need to create a sub-interface for each vlan on each router and configure HSRP between them. For example; if your servers are in vlan 10 and the ip subnet is 192.168.10.0/24

you would need to configure a sub-interface for vlan 10 on each router and also run HSRP, so you have redundancy.

example:

interface Gi0/1/0.10
description server vlan 10
encapsulation dot1Q 10
ip address 198.168.10.2 255.255.255.0
standby 10 ip 198.168.10.1
standby 10 priority 109
standby 10 preempt

 

on the second router

interface Gi0/1/0.10
description server vlan 10
encapsulation dot1Q 10
ip address 198.168.10.3 255.255.255.0
standby 10 ip 198.168.10.1
In the above example, the top router has a higher priority, so it will be the active router. The second router will be the stand-by router. If you have multiple server vlans, you just need different vlans and subnets but the config would look the same. You also need to have a layer-3 link between the 2 routers.

HTH

 

 

 

Yes but what about the 2nd connections on each router or can you not do that?

Layer 3 link between the two router meaning connect them together?

 

 

Yes but what about the 2nd connections on each router or can you not do that?

Now that I think about it you don't need a second connection (no cross-connects)

Layer 3 link between the two router meaning connect them together?

Yes, connect them together and use /30 subnet for peering.

HTH

Yes please take a look at diagram I updated it because it was missing port numbers and connections.

 

Yes I would configure HSRP interfaces on each Internal Router (g1) but what about the other connections (g2) that goes to the other switch (each switch connects to each router)?

Also, how would I configure ports g3 on the Internal routers is g1 and g0 are just access vlan 123 ports on the Edge/interconnecting switch?

 

 

Can you make the diagram bigger as it is very hard to see the ports and descriptions?

 

Yes I will have to wait until I get to my PC at home.

Basically my big question is, how do I configure ports on a router/fw that connect to 2x redundant switches? (e.g. If let's say g1 on router has 10.1.1.1 going to switch1, how do I configure g2 on the router that goes to switch 2? Likewise on FW. In the diagram I am showing a layer 2 switch that is used in between routers and FW. I know I should put ports in FW and routers into just a common VLAN let's say mgmt. 10, but how do I configure the corresponding ports on the routers and the FW?

Basically my big question is, how do I configure ports on a router/fw that connect to 2x redundant switches? (e.g. If let's say g1 on router has 10.1.1.1 going to switch1, how do I configure g2 on the router that goes to switch 2?

So, looking at your diagram again, the best way is to remove g2 from each router (no cross-connect) since the 4000 are just routers. So, g1 on accsw1 connects to g1 on internalRT1 and g0 on accsw2 connects to g1 on internalRT2.  

Likewise on FW. In the diagram I am showing a layer 2 switch that is used in between routers and FW. I know I should put ports in FW and routers into just a common VLAN let's say mgmt. 10, but how do I configure the corresponding ports on the routers and the FW?

For this one, you need a common vlan for internalRT1, internalRT2, edgesw, and the fw.  You would need to configure the 4000 routers with HSRP, layer-2 vlan only on the edgesw and one ip on the fw all in the same subnet/vlan.

HTH

Awsome this is helpful!

Now, I configure HSRP on the router interface that connects to the interconnecting switch (between the routers and fw) or on the ports on the router that connect to the access switches.

e.g.,

interfaces on routers that connect to switch  have 10.10.1.1, 2.1, 3.1, etc.

intefaces on rotuers that connect to interconnecting switch will have the management ip 10.10.10.1 (HSRP - virtual ip is .1, router1 is .2, router2, is .2) which will also be configured on each device to access via management ip? If that is the case, I would use the port on the interconnecting switch that connects to the router as the standby track interface?

Now, I configure HSRP on the router interface that connects to the interconnecting switch (between the routers and fw) or on the ports on the router that connect to the access switches.

On both sides.  On the left side on the routers, you need HSRP for the server vlans (10.10.1.1, 2.1, 3.1, etc) and on the right side, you need HSRP for connectivity to the interconnecting switch and the fw.

The subnet/vlan you use on the right side is not for management, it is rather a transit vlan that is needed to connect the left side (server vlans) to the right side and finally Internet.  You can also use the same IPs to manage the devices or create a whole new subnet/vlan for management.

HTH

 

Oh ok!
So if I use let's say vlan 123 as a transit VLAN on the interconnecting switch, how will my vlan 10 management traffic transverse that switch to access the FW?

As long as the interfaces on the routers are configured with dot1.q (sub-interfaces) and the link to the switch is trunked and the link from the switch to the fw is trunked as well, you can add multiple vlans/subnet to it.  It is just like any other trunk port. You can then use vlan 123 for transit, vlan 10 for management, vlan 30, 40 and 50 for something else and so on...

 

HTH

 

Oh ok so on the interconnecting switch, ports going to the router and ports going to the fw are just trunks and not switchport access vlan 123 correct?

Oh ok so on the interconnecting switch, ports going to the router and ports going to the fw are just trunks and not switchport access vlan 123 correct?

That is correct.  You want to trunk them, to begin with.  This way you can use more vlans/subnets as you wish and there is no downtime.

HTH

Ok bro I think I got it see new attached diagram showing connections and basic configs (I am kinda short-handing it and left out ACLs on FW, etc but showing HSRP, gateways, ips, etc.)

 

For Standby 2 on the router g3 interfaces, I am not sure what interface to track.

               Also, I would like to still just use vlan 10 as the management subnet but I am already using                     vlan 10 on the g1.10 interface so is that even possible?

 

As for gateways, I should be pointing to the FW as the GW on the  Internal routers and not the EdgeSw given that switch is just so I can connect both routers and the only IP  on it is SVI 10 for management access correct?

 

As for static routes, I just need to enter them at the EdgeRt (to reach internal 10.1.X.X subnets) and use a /16 correct???

             How do I make a vlan 10 IP accessible at the Edge Rt if that is possible?

              Would I just do my NAT at the FW? I need to translate my private 10.1.0.0 255.255.0.0 (/16                    to translate everything in 10.1.X.X correct?) to the G1 ip 50.50.50.2 IP on the Edge Rt?

Ok so I have the Edge sw(interconnecting switch) in place between the internal Router and FW but I can't ping the SVI of the EdgeSw nor ping the Interface router IP on the Router or any ip on the router.

See configs below. Just as in diagram. I have attached it again.

 

int G3.11

Desc mgmt

Encap dot1q

ip 10.10.11.2 255.255.255.0

Standby 2 ip 10.10.11.1 255.255.255.0

Standby preempt (R1 only)

 

Edge Sw (Interconnecting sw)

g1 (g2 of Sw2 Same)

switchport mode trunk

 

All other configs just as in diagram.

I can't ping between these interfaces or any other IP.

See anything wrong?

 

 

Review Cisco Networking for a $25 gift card