cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1102
Views
0
Helpful
16
Replies

How to setup routing on switch

janasj626
Level 1
Level 1

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 16

abbas.wasim
Level 1
Level 1

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

I did:

1 configure terminal

2 router rip

I got an error "IP routing not enabled"

Hi

From config mode on your 3560

3560(config)# ip routing

Then carry on with your rip configuration.

Jon

OK

give a commands ip routing in config terminal mode

then follow the previous steps

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?

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

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.

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

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,

Can you post an ipconfig from the server ?

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

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

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

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

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: