Switch IP routing and vlan

Answered Question
Nov 30th, 2009

First office.

Hi, I have multiple vlan at the datacenter.

vlan 236 = vlan switches  IP:10.133.236.0

vlan 238 = vlan of the server   IP:10.133.238.0

Those two vlan are configured on a 3750 switches.

Second Office

vlan 100 for administration of those switches   10.138.100.0

vlan 91 for the server    10.138.91.0

vlan 10 for office.    10.138.10.0

etc.

It is an 3750 switches also.

Both switches are doing layer 3

What I want to do is to add in my second office the vlan 238 ( Server ) that is at my first office , So I already configure and add the vlan 238 on my second switch.

But, now, I don't know how to route , Ping from my first datacenter to the second ,

I think that I need to

IP route 0.0.0.0 0.0.0.0 10.133.100.0

Could you help ??

I have this problem too.
0 votes
Correct Answer by Jon Marshall about 4 years 4 months ago

serge_leboeuf wrote:

First office.

Hi, I have multiple vlan at the datacenter.

vlan 236 = vlan switches  IP:10.133.236.0

vlan 238 = vlan of the server   IP:10.133.238.0

Those two vlan are configured on a 3750 switches.

Second Office

vlan 100 for administration of those switches   10.138.100.0

vlan 91 for the server    10.138.91.0

vlan 10 for office.    10.138.10.0

etc.

It is an 3750 switches also.

Both switches are doing layer 3

What I want to do is to add in my second office the vlan 238 ( Server ) that is at my first office , So I already configure and add the vlan 238 on my second switch.

But, now, I don't know how to route , Ping from my first datacenter to the second ,

I think that I need to

IP route 0.0.0.0 0.0.0.0 10.133.100.0

Could you help ??

How are the 2 sites connected to each other. If it is a L3 link then you won't be able to have the same vlan in your 2 different sites unless you use something along the lines of L2TPv3 but as far as i know that isn't supported on the 3750 switches.

If the connection is L2 then you could do this.

Is there any reason you need to add the vlan to your second office. Can you not just route to the server vlan in the data centre  ? If this is what you are asking you can add a static route on the 3750 in your second office but again we need to know how the 2 sites are connected and the IP addressing that connects the 2 sites. Perhaps a quick topology diagram.

ip route 0.0.0.0 0.0.0.0 10.133.100.0  does not make any sense.

On the 3750 office switch this is what you would need

ip route 10.133.238.0 255.255.255.0  

but as i say without knowing how your sites are connected/ip addressing can't say for sure which approach you need.

Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (1 ratings)
Correct Answer
Jon Marshall Mon, 11/30/2009 - 16:42

serge_leboeuf wrote:

First office.

Hi, I have multiple vlan at the datacenter.

vlan 236 = vlan switches  IP:10.133.236.0

vlan 238 = vlan of the server   IP:10.133.238.0

Those two vlan are configured on a 3750 switches.

Second Office

vlan 100 for administration of those switches   10.138.100.0

vlan 91 for the server    10.138.91.0

vlan 10 for office.    10.138.10.0

etc.

It is an 3750 switches also.

Both switches are doing layer 3

What I want to do is to add in my second office the vlan 238 ( Server ) that is at my first office , So I already configure and add the vlan 238 on my second switch.

But, now, I don't know how to route , Ping from my first datacenter to the second ,

I think that I need to

IP route 0.0.0.0 0.0.0.0 10.133.100.0

Could you help ??

How are the 2 sites connected to each other. If it is a L3 link then you won't be able to have the same vlan in your 2 different sites unless you use something along the lines of L2TPv3 but as far as i know that isn't supported on the 3750 switches.

If the connection is L2 then you could do this.

Is there any reason you need to add the vlan to your second office. Can you not just route to the server vlan in the data centre  ? If this is what you are asking you can add a static route on the 3750 in your second office but again we need to know how the 2 sites are connected and the IP addressing that connects the 2 sites. Perhaps a quick topology diagram.

ip route 0.0.0.0 0.0.0.0 10.133.100.0  does not make any sense.

On the 3750 office switch this is what you would need

ip route 10.133.238.0 255.255.255.0  

but as i say without knowing how your sites are connected/ip addressing can't say for sure which approach you need.

Jon

serge_leboeuf Tue, 12/01/2009 - 12:18

Thank For the reply:

I'm pretty sure that I could do that with an IP route.

But , Idon't know where to do it.On which switch , On the  master  or on the second one that I want to add the server .

The master switch is at the datacenter

Vlan 236, 238, 228, 239

Second switch is in a mills.

vlan 100, 10, 50, 91,

I need to do that because I don't have any place at the datacenter .

So, I want to know, Do I need to add the vlan 238 on my second switch ??

Do I need to put an Ip address on the interface for that vlan ??

Also, To do what I want to do , On which switch I should do the Ip route and why ??

Ip route ( Ip  Of what , wich vlan  and is subnet) next hop ???

If I ping a server that is at the mills (vlan 091) It used the vlan 080..... 

Ip route ( Which one I should use ??  ) Next hop is the vlan I want to go ?????

Sorry, But i'm tryning to learn   .

Thanks !!

Jon Marshall Tue, 12/01/2009 - 12:29

serge_leboeuf wrote:

Thank For the reply:

I'm pretty sure that I could do that with an IP route.

But , Idon't know where to do it.On which switch , On the  master  or on the second one that I want to add the server .

The master switch is at the datacenter

Vlan 236, 238, 228, 239

Second switch is in a mills.

vlan 100, 10, 50, 91,

I need to do that because I don't have any place at the datacenter .

So, I want to know, Do I need to add the vlan 238 on my second switch ??

Do I need to put an Ip address on the interface for that vlan ??

Also, To do what I want to do , On which switch I should do the Ip route and why ??

Ip route ( Ip  Of what , wich vlan  and is subnet) next hop ???

If I ping a server that is at the mills (vlan 091) It used the vlan 080..... 

Ip route ( Which one I should use ??  ) Next hop is the vlan I want to go ?????

Sorry, But i'm tryning to learn   .

Thanks !!

Serge

No need to apologize.

Can you clarify something. Do you want

1) to be able to route to vlan 238 from the office site

OR

2) actually be able to have vlan 238 exist in both the data centre and the office site.

The 2 things are very different and we need to know which one you want before we can suggest a solution.

Also we have to know

1) how is the data centre connected to the office site ie.

    what devices are used to connect the 2 sites

    is the link a Layer 3 routed link or a L2 switched link

Jon

serge_leboeuf Tue, 12/01/2009 - 13:09

Thanks again !

1) to be able to route to vlan 238 from the office site , NO !

OR

2) actually be able to have vlan 238 exist in both the data centre and the office site. Yes, I want to add the server there in the vlan 238 !

The 2 things are very different and we need to know which one you want before we can suggest a solution.

Also we have to know

1) how is the data centre connected to the office site ie.

    what devices are used to connect the 2 sites: Switches it is in the same building !!

    is the link a Layer 3 routed link or a L2 switched link

At the Datacenter , It is doing layer 3 , here's a show version :


Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 12.2(50)SE2,                                                                              RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Fri 15-May-09 21:29 by nachen
Image text-base: 0x00003000, data-base: 0x01D00000

ROM: Bootstrap program is C3750 boot loader
BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE                                                                              (fc1)

CTG-CORE uptime is 12 weeks, 2 days, 5 hours, 27 minutes
System returned to ROM by power-on
System image file is "flash:/c3750-ipservicesk9-mz.122-50.SE2.bin"

At the mills :


Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(50)SE2, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Fri 15-May-09 21:29 by nachen
Image text-base: 0x00003000, data-base: 0x01900000

ROM: Bootstrap program is C3750 boot loader
BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)

091-C3750-ADM-1 uptime is 24 weeks, 3 days, 20 hours, 5 minutes
System returned to ROM by power-on
System restarted at 20:01:06 EST Fri Jun 12 2009
System image file is "flash:/c3750-ipbasek9-mz.122-50.SE2.bin"

Both are doing layer 3 a I know !!

serge_leboeuf Thu, 12/03/2009 - 12:48

I just need to add a fiber optic from one switch to the other one only, Create the vlan on the

remote switch only.

Thank You very much  !!

Actions

Login or Register to take actions

This Discussion

Posted November 30, 2009 at 4:35 PM
Stats:
Replies:5 Avg. Rating:5
Views:2869 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard