Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > VLAN across a routed connection?

Reply
Thread Tools

VLAN across a routed connection?

 
 
Martin Pugh
Guest
Posts: n/a
 
      09-15-2007
Hi all,

I have 2 LAN's on seperate IP subnets connected by a layer 3 routed link
between 2 stacks of Catalyst 3750G-SMI switches and I need to create an
IP subnet common to both networks (but different to their main subnets)
to implement a failover configuration for our internet access. I'm
guessing a VLAN would be the way to go but is it possible to pass VLAN
traffic over a layer 3 link or is there a better way to connect these 2
subnets that would all me to implement this setup?

Thanks,

Martin
 
Reply With Quote
 
 
 
 
thefunnel@aol.com
Guest
Posts: n/a
 
      09-15-2007
Hi Martin,

Sounds like you need to create a trunk to carry the common VLAN across
the routed link. You can then use SVIs (Switched Virtual Interfaces)
to carry the layer three traffic alongside.

Something like:

vlan 5
Name "Layer 2 VLAN for common subnet"

interface vlan 10
description "Layer 3 SVI for routed traffic"
ip address 192.168.1.1 255.255.255.252

interface FastEthernet0/1
description "Trunk port to carry both layer 2 and layer 3 VLANs"
switchport trunk encapsulation dot1q
switchport mode trunk

Hope this helps,

Paul

 
Reply With Quote
 
 
 
 
Martin Pugh
Guest
Posts: n/a
 
      09-15-2007
Hi Paul,

Thanks for the quick reply. My current configuration looks like this :-

interface Port-channel1
description Point-to-point link
no switchport
ip address 172.24.1.1 255.255.255.252
!

interface GigabitEthernet1/0/28
description SW001G1/0/28
no switchport
no ip address
channel-group 1 mode active
!

ip route 10.3.0.0 255.255.0.0 172.24.1.2

I went with the port channel as I intend to add additional SFP's in the
near future to increase the available bandwidth. The drawback is that
you set the port as "no switchport" so you can't assign it as a trunk.
I'm sure there's a better way to do this I just can't get my head around it.

Martin


 
Reply With Quote
 
Merv
Guest
Posts: n/a
 
      09-15-2007
Alternatives:

1. If the Internet router only has one port facing the existing switch
infrastructure then you would need to insert a hub or a small switch
between the Internet router and the two existing switches. The ports
on the existing switches facing the Internet router would be
configured as routed ports and could run HSRP.

2. If the Internet router has two ports available facing the existing
switch infrastructure, then connect one router port to each of the
existing switch with each of the switch ports being configured as a
routed interface. Run a common routing protocol amongst the switches
and the internet router in order for dynamic routing to take care of
switch failures. Internet router should advertise default to the
switches.



 
Reply With Quote
 
thefunnel@aol.com
Guest
Posts: n/a
 
      09-15-2007
No problem Martin.

Port-channels can be layer 2 or 3 - just like physical ports.

I suggest you change your Port-channel to layer 2 so it can be
configured as a trunk port. The trunk can then carry two VLANs - The
"common VLAN" and the SVI VLAN for routed traffic:

interface Port-channel1
description "Layer 2 Port-channel"
switchport
switchport trunk encapsulation dot1q
switchport mode trunk

Then configure the VLANS / SVIs:

vlan 5
name "Common VLAN"

interface vlan 10
description "SVI for routed traffic"
no switchport
ip address 172.24.1.1 255.255.255.252

Then turn on the Port-channel for the physical port:

interface GigabitEthernet1/0/28
switchport
channel-group 1 mode active

Let me know how you get on,

Paul

 
Reply With Quote
 
stephen
Guest
Posts: n/a
 
      09-15-2007
<> wrote in message
news: ps.com...
> No problem Martin.
>
> Port-channels can be layer 2 or 3 - just like physical ports.
>
> I suggest you change your Port-channel to layer 2 so it can be
> configured as a trunk port. The trunk can then carry two VLANs - The
> "common VLAN" and the SVI VLAN for routed traffic:
>
> interface Port-channel1
> description "Layer 2 Port-channel"
> switchport
> switchport trunk encapsulation dot1q
> switchport mode trunk
>
> Then configure the VLANS / SVIs:
>
> vlan 5
> name "Common VLAN"
>
> interface vlan 10
> description "SVI for routed traffic"
> no switchport
> ip address 172.24.1.1 255.255.255.252
>
> Then turn on the Port-channel for the physical port:
>
> interface GigabitEthernet1/0/28
> switchport
> channel-group 1 mode active
>
> Let me know how you get on,


1 other thing to worry about is what happens when it breaks?

this type of design is common with server replication schemes that work at
layer 2, and the assumption is that when you lose a site, the other copy
carries on and the remaining network survives.

however - WAN faults are as common as major server or site failures.

if you have a L2 subnet across 2 sites like this, then any routers sending
traffic into it from elsewhere treat it as a single logical connected lump
of IP addresses - because that is what a subnet really is.
the hidden design assumption is that things only work if that subnet is
internally connected.

So - it breaks in 2 pieces. At that point you find out that most traffic
patterns on the 2 sections where the traffic comes into the subnet from
outside stop working.

if you have a local router interface, then outgoing works fine if you still
have a default gateway.

but the return traffic just gets delivered to either section depending on
router best path - and that may be the wrong half......
>
> Paul

--
Regards

- replace xyz with ntl


 
Reply With Quote
 
Martin Pugh
Guest
Posts: n/a
 
      09-17-2007
Hi Stephen,

Thanks for the heads up but in our setup it's not a problem. The 2
offices are literally 350 Metres apart using our on on-site fibres so a
break in the link is probably less likely than loosing a WAN link.

Each office has its own dedicated subnet and the additional subnet will
only be used locally in the 2 offices so we have no traffic being routed
into it from the rest of the WAN.

Martin

stephen wrote:
> <> wrote in message
> news: ps.com...
>> No problem Martin.
>>
>> Port-channels can be layer 2 or 3 - just like physical ports.
>>
>> I suggest you change your Port-channel to layer 2 so it can be
>> configured as a trunk port. The trunk can then carry two VLANs - The
>> "common VLAN" and the SVI VLAN for routed traffic:
>>
>> interface Port-channel1
>> description "Layer 2 Port-channel"
>> switchport
>> switchport trunk encapsulation dot1q
>> switchport mode trunk
>>
>> Then configure the VLANS / SVIs:
>>
>> vlan 5
>> name "Common VLAN"
>>
>> interface vlan 10
>> description "SVI for routed traffic"
>> no switchport
>> ip address 172.24.1.1 255.255.255.252
>>
>> Then turn on the Port-channel for the physical port:
>>
>> interface GigabitEthernet1/0/28
>> switchport
>> channel-group 1 mode active
>>
>> Let me know how you get on,

>
> 1 other thing to worry about is what happens when it breaks?
>
> this type of design is common with server replication schemes that work at
> layer 2, and the assumption is that when you lose a site, the other copy
> carries on and the remaining network survives.
>
> however - WAN faults are as common as major server or site failures.
>
> if you have a L2 subnet across 2 sites like this, then any routers sending
> traffic into it from elsewhere treat it as a single logical connected lump
> of IP addresses - because that is what a subnet really is.
> the hidden design assumption is that things only work if that subnet is
> internally connected.
>
> So - it breaks in 2 pieces. At that point you find out that most traffic
> patterns on the 2 sections where the traffic comes into the subnet from
> outside stop working.
>
> if you have a local router interface, then outgoing works fine if you still
> have a default gateway.
>
> but the return traffic just gets delivered to either section depending on
> router best path - and that may be the wrong half......
>> Paul


 
Reply With Quote
 
Martin Pugh
Guest
Posts: n/a
 
      09-17-2007
Hi Paul,

Than sounds like a plan to me and I think it's starting to sink in..
I'll get some time organised to put it in place out off hours

One last question though, I have all the other switch ports on both ends
of the link in the default VALN1.. If the switches are connected at
layer 2 wouldn't that mean the single VLAN1 would span both sites and
give me no end of IP and VLAN overlaps?

Thanks,

Martin
 
Reply With Quote
 
thefunnel@aol.com
Guest
Posts: n/a
 
      09-18-2007
Hi Martin,

Yes that is something to watch out for. Enabling trunking between the
two switches will trunk all VLANs by default. So yes - your two VLAN1s
will get bridged, as will any other VLANs with the same ID.

You can restrict which VLANS are allowed across the trunk with:

switchport trunk allowed vlan 5, 10

Best practice would be to avoid using VLAN1 for users. I suggest you
also read about the native VLAN option before you get too involved
with setting up DOT1Q trunks.

Good luck!

Paul

 
Reply With Quote
 
stephen
Guest
Posts: n/a
 
      09-19-2007
<> wrote in message
news: ups.com...
> Hi Martin,
>
> Yes that is something to watch out for. Enabling trunking between the
> two switches will trunk all VLANs by default. So yes - your two VLAN1s
> will get bridged, as will any other VLANs with the same ID.


also vlan 1 is "special" on cisco - things like CDP live there, so even if
you turn it off there will be some traffic.

best practice for a big network is not to use vlan1 for anything (maybe just
management).

a few bits of good design practice (for lots of cisco stuff, not just
campus):
www.cisco.com/go/srnd

worth looking at even if you ignore most of it as not applicable.

that way when someone throws in a new switch without config, it doesnt work
(or doesnt connect to the rest of the network), so cannot break the design
without some effort and the installer has to do something to get
connectivity.....
>
> You can restrict which VLANS are allowed across the trunk with:
>
> switchport trunk allowed vlan 5, 10
>
> Best practice would be to avoid using VLAN1 for users. I suggest you
> also read about the native VLAN option before you get too involved
> with setting up DOT1Q trunks.


and please dont use VTP - network wide VLANs is not a good idea.


>
> Good luck!
>
> Paul
>

--
Regards

- replace xyz with ntl


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Symantec Ghost across VLANS routed by cisco router amfony Cisco 6 05-02-2006 08:21 AM
6500 - Default routed VLAN interface behaviour Dave_T Cisco 2 01-26-2006 10:47 AM
VLAN across a WAN without VLAN's? Rob Cisco 5 12-14-2005 11:17 AM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CW Recource Manager Essentials, NGenious RealTime Monitor, CiscoWorks Routed WAN Management Solution v1.3 [3 CDs], CiscoWorks VPN_Security Management Solution v2.2, CiscoWorks QoS P astra35 Cisco 0 05-19-2004 01:01 PM
Routed port on 3550 switch John Cisco 1 01-31-2004 02:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57