leblanc
asked on
switport access or routed link
I have a Cisco router and a 3750X layer 3 switch. Should I connect them as a routed link or an switchport access vlan1 from the router (see below)
Scenario 1:
Router-----------
interface gig0/0
ip address 10.10.10.1 255.255.255.0
sw--------------
interface gig1/0/1
switchport access vlan 1
switchport mode access
!
interface vlan1
ip address 10.10.10.2 255,255,255,0
!
interface vlan2
ip address 10.10.20.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 10.10.10.1
Scenario 2:
Router-----------
interface gig0/0
ip address 10.10.100.1 255.255.255.252
sw--------------
interface gig1/0/1
ip address 10.10.100.2 255.255.255.252
!
inteface vlan1
ip address 10.10.10.2 255.255.255.0
!
interface vlan2
ip address 10.10.20.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 10.10.100.1
Scenario 1:
Router-----------
interface gig0/0
ip address 10.10.10.1 255.255.255.0
sw--------------
interface gig1/0/1
switchport access vlan 1
switchport mode access
!
interface vlan1
ip address 10.10.10.2 255,255,255,0
!
interface vlan2
ip address 10.10.20.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 10.10.10.1
Scenario 2:
Router-----------
interface gig0/0
ip address 10.10.100.1 255.255.255.252
sw--------------
interface gig1/0/1
ip address 10.10.100.2 255.255.255.252
!
inteface vlan1
ip address 10.10.10.2 255.255.255.0
!
interface vlan2
ip address 10.10.20.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 10.10.100.1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Agree with Don, from both of the configs you will achieve the same result, doesn't matter which one you use....
ASKER
ok. So in scenario 1, when I ping a device on vlan 2 from the router, Where will the routing occur? The link between the router and the switch only vlan1 subnet traffic. Thx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That's right. The switch will do intervlan. So you do not need to have a static route from the router because it is directly connected to vlan1. Correct? The reason I ask is because I build a lab on scenarion 1 and I could not ping vlan2 subnet. Thx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try enabling ip routing on the 3750 and add each vlan to a router protocol such as eigrp in the 3750 switch configuration.
ASKER
Yes there is no need for subinterfaces. I want to stay away from router-0on-a-stick type of configuration. ip routing is enabled on the switch.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So I need to configure a dynamic routing protocol like EIGRP between the router and the 3750X with either scenario. Corrrect?
"Any traffic not routed at the 3750X will be sent to the router. Therefore I'd probably use a routed link between the 3750 and the router."
So if I have a subnet that is not defined in the SVI of the 3750X, it will be sent through the default route to the router. So it does not matter if it is layer 2 or routed link between the router and the switch. Correct?
"Any traffic not routed at the 3750X will be sent to the router. Therefore I'd probably use a routed link between the 3750 and the router."
So if I have a subnet that is not defined in the SVI of the 3750X, it will be sent through the default route to the router. So it does not matter if it is layer 2 or routed link between the router and the switch. Correct?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.