Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

How to setup routing on switch

Hi,

I have 1 networks managed by me (10.13.24/24). The servers in this network are backedup via a different network (193.28.206.0) that is not managed by me.

Currently we have a persistent static route setup in our servers. We are having problems with the route not working properly.

I want to know how do I setup routing on the switch side? Is it possible?

Using C3650G-48TS switch (C3560-IPBASEK9-M), Version 12.2(35)SE1)

Thanks

16 REPLIES
New Member

Re: How to setup routing on switch

you can enable routing within the global configuration mode with commands

1 router rip/igrp/eigrp/ospf

then

2 network 10.0.0.0

3 network 192.0.0.0

it should work

New Member

Re: How to setup routing on switch

I did:

1 configure terminal

2 router rip

I got an error "IP routing not enabled"

Hall of Fame Super Blue

Re: How to setup routing on switch

Hi

From config mode on your 3560

3560(config)# ip routing

Then carry on with your rip configuration.

Jon

New Member

Re: How to setup routing on switch

OK

give a commands ip routing in config terminal mode

then follow the previous steps

New Member

Re: How to setup routing on switch

Abbas, Jon,

Thanks. The command worked fine.

But, I am still not able to see the route getting effective from my server end. When I do a tracert to the 193.28.206 address, it goes through the default gateway and not through the route created in switch.

How do I verify that the command I gave is effective on the switch?

Hall of Fame Super Blue

Re: How to setup routing on switch

Hi

Could you provide some more details ie.

1) Do your server backup using separate NIC's or through the same NIC as the data.

2) Could you provide the config of your switch.

3) Could you provide the static route that you used on your servers.

Jon

New Member

Re: How to setup routing on switch

1. No. Backup runs with the same NIC and same IP address as it is accessed for other applications.

2. Attached switch config

3. "route.exe add 193.28.206.0 mask 255.255.255.0 10.13.25.201 -p" --> This is what is added on the servers.

Hall of Fame Super Blue

Re: How to setup routing on switch

Hi

Okay assuming 10..13.25.201 is reachable from your switch which it should be you can add a static route to your switch

ip route 193.28.206.0 255.255.255.0 10.13.25.201

With this an IP routing enabled you could remove your RIP configuration because it isn't doing anything for you.

Jon

New Member

Re: How to setup routing on switch

Jon,

I did this and routing works fine from the switch. Perfect.

But, from within the server connected to this switch, it goes through the default gateway of the NIC and not through this route enabled on the switch.

I feel I am missing something in the overall configuration somewhere. any clues?

Thanks,

Hall of Fame Super Blue

Re: How to setup routing on switch

Can you post an ipconfig from the server ?

New Member

Re: How to setup routing on switch

C:\>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : Lab2

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Team-Mem2:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : HP NC360T PCIe DP Gigabit Server Adapter

Physical Address. . . . . . . . . : 00-1B-78-58-31-5E

DHCP Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 10.13.24.164

Subnet Mask . . . . . . . . . . . : 255.255.248.0

Default Gateway . . . . . . . . . : 10.13.24.254

New Member

Re: How to setup routing on switch

do show ip route and look for R on left hand side

New Member

Re: How to setup routing on switch

17>show ip route

Gateway of last resort is not set

10.0.0.0/21 is subnetted, 1 subnets

C 10.13.24.0 is directly connected, Vlan25

Hall of Fame Super Silver

Re: How to setup routing on switch

Janarthanan

The output of ipconfig was helpful as is the output of show ip route. I am a little surprised that the static route does not show up in the routing table.

To really understand why the server is going to the default gateway rather than to the route I believe that we would need to see the output of route print from the server. Would you post that output?

HTH

Rick

New Member

Re: How to setup routing on switch

Rick,

I want to avoid giving the static route on the server end and that's why I was checking if it is possible to do it from switch.

Below is the route table from the server (and you will not see the persistent route added). This is for a test server. Below this you will find for another server which is already in backup and having static route.

============

Test server:

============

C:\>route print

IPv4 Route Table

===========================================================================

Interface List

0x1 ........................... MS TCP Loopback interface

0x10004 ...00 1b 78 58 31 5e ...... HP NC360T PCIe DP Gigabit Server Adapter

===========================================================================

===========================================================================

Active Routes:

Network Destination Netmask Gateway Interface Metric

0.0.0.0 0.0.0.0 10.13.24.254 10.13.24.164 10

10.13.24.0 255.255.248.0 10.13.24.164 10.13.24.164 10

10.13.24.164 255.255.255.255 127.0.0.1 127.0.0.1 10

10.255.255.255 255.255.255.255 10.13.24.164 10.13.24.164 10

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1

224.0.0.0 240.0.0.0 10.13.24.164 10.13.24.164 10

255.255.255.255 255.255.255.255 10.13.24.164 10.13.24.164 1

Default Gateway: 10.13.24.254

===========================================================================

Persistent Routes:

None

===========================================================================

===============

Another Server:

===============

IPv4 Route Table

===========================================================================

Interface List

0x1 ........................... MS TCP Loopback interface

0x10003 ...00 16 35 7c d4 ad ...... HP Network Team #1

===========================================================================

===========================================================================

Active Routes:

Network Destination Netmask Gateway Interface Metric

0.0.0.0 0.0.0.0 10.13.24.254 10.13.24.152 10

10.13.24.0 255.255.248.0 10.13.24.152 10.13.24.152 10

10.13.24.152 255.255.255.255 127.0.0.1 127.0.0.1 10

10.255.255.255 255.255.255.255 10.13.24.152 10.13.24.152 10

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1

193.28.206.0 255.255.255.0 10.13.25.201 10.13.24.152 1

224.0.0.0 240.0.0.0 10.13.24.152 10.13.24.152 10

255.255.255.255 255.255.255.255 10.13.24.152 10.13.24.152 1

Default Gateway: 10.13.24.254

===========================================================================

Persistent Routes:

Network Address Netmask Gateway Address Metric

193.28.206.0 255.255.255.0 10.13.25.201 1

===========================================================================

Hall of Fame Super Blue

Re: How to setup routing on switch

Hi

I think there may be some confusion here. I believe your switch was just acting as a layer 2 switch.

Where is the default gateway 10.13.24.254 because this is not the on the 3560 switch. The 3560 will not route your packets because it is not the default gateway for your server.

So you need to either

1) Go onto the 10.13.24.254 device and add a static route for 193.28.206.0/24 as in previous post

OR

2) Make the 3560 the default gateway for the server although without knowing your topology i would not recommend this to start with.

Rick - the static route doesn't show up because my post requesting it to be added was after the post requesting a "show ip route" even though it appears before it.

Jon

368
Views
0
Helpful
16
Replies
CreatePlease to create content