Solved

vlan and layer 3

Posted on 2013-01-22
3
300 Views
Last Modified: 2013-02-06
I saw 2 configurations that give the same result. I just want your inputs on which one is the best practice.

Scenario 1:
- A Cisco 2921 router (Fa0/1) connects to a 3750 switch (Fa0/2).
- Fa0/1 is configured with 10.10.10.1/24
- Fa0/2 is configured as an access port on vlan 1
- On the switch, vlan 1 is configured with ip address 10.10.10.2/24
- On the switch, default gateway pointed to 10.10.10.1

Scenario 2:
- A Cisco 2921 router (Fa0/1) connects to a 3750 switch (Fa0/2).
- internal subnet is 10.10.10.0/24
- Fa0/1 is configured with 10.10.20.1/30
- Fa0/2 is configured with 10.10.20.2/30
- On the switch, default gateway pointed to 10.10.10.1
- on the router, next hop for 10.10.10.0/24 is 10.10.20.2

Thanks
0
Comment
Question by:biggynet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
ddiazp earned 167 total points
ID: 38808324
Scenario 1 is what you want. Maybe it's just my preference but working with vlan interfaces is much more flexible, easier and more widely accepted.
0
 
LVL 20

Assisted Solution

by:rauenpc
rauenpc earned 167 total points
ID: 38808512
If I'm reading that right, the difference between the two is a routed subnet between the switch and router, versus the Router being on the same subnet.

If you only have the single subnet and never go beyond it, then it's a wash because everything talks directly on the same layer two network.

If you end up with more internal subnets, then there can be a difference. With a single subnet, the default gateway for all devices will be the router. The ip on the switch really only provides management. When you have multiple subnets, all devices need to use the switch as a default gateway to get the best performance (the switch will use the router as a default gateway). This way all internal traffic is L3 switched which is much better than making a single FA link on the router do all the internal routing. An odd situation can happen when you have multiple subnets, and the router exists on one of the subnets that other devices, aside from the switch, reside. If any of those devices were to use the router as a default gateway while other devices were using the switch, you end up with split routing and users will not get consistent performance. Using the separately routed interface/vlan ensures that split routing can't happen.

In the end, I try to use the separately routed interface/vlan whenever possible even if only one vlan exists. It requires a relatively small amount of effort, and it lays the ground work for when additional vlans are needed.
0
 
LVL 9

Assisted Solution

by:Sandeep Gupta
Sandeep Gupta earned 166 total points
ID: 38809672
second scenario is straight forwad ..you connect two boxes directly and give the IP on interface.

In first scenario..both the interfaces are directly conncted and it is a property of vlan you applied ..vlan can be used as L2 as well as L3. here you uses vlan as L3 by giving it ip.

you applied vlan 1 as access so that port and link property do not change..

if you apply vlan 1 on port as trunk ..it will not work.
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question