cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
334
Views
11
Helpful
7
Replies

Route traffic

dkblee
Level 1
Level 1

hi! if i would to route packet request from the existing subnet to another subnet. What's the best method of doing this? IP route or default gateway?

7 Replies 7

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Without a bit more detail it's difficult to say. Are you talking about routing on a Cisco router, switch or end device.

What devices arfe between the subnets that your are routing from to. And are you just concerned with using static routes or are you running a routing protocol.

Jon

it's a 6500 series core switch. All the 3000 series switches are connected to the 2 core switch. There's no routing protocol used.

What would be the different in this case if it's a static route or routing protocol?

Thanks.

Hi

Using a routing protocol allows you to add a new subnet and have it automatically propogated to other L3 devices. If the subnet becomes unavailable it will also be removed from the routing table.

You don't get this with static routes. If you add another subnet you need to remember to add another static route. If the subnet becomes unavailable the static route will still be there in your configuration.

Do your 3000 switches have L3 vlan interfaces on them ?. If they are just layer 2 switches and all the inter-vlan routing is done on the 6500's then you don't need to add static routes other than maybe a default route to a WAN router.

If the 3000 switches are layer 2 only then you just need to add a default gateway so you can remotely manage them.

HTH

Jon

mohammedmahmoud
Level 11
Level 11

Hi,

A more specific route is preferred, especially when you have many subnets, a default gateway is used as a last resort route for packets that don't have an exact match, accordingly i'll recommend that you do it via a more specific ip route.

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

If your core switches are routing between the VLANs then you don't need to any static routes at all or you don't need any routing protocol. All the routes will show up as directly connected routes in the routing table. The only thing that's needed is the layer 2 switches have to be configured with a 'ip default-gateway' command to point to their respective VLAN int IP of the core switch.

HTH

Sundar

hi!

What should be added into the core switch if i want to enable the client to be able to access a public static ip address? should i use the ip default-gateway on the router or ip route to route traffic to the public ip address? Can i use default route command in this case? What's the different between this 3 commands?

Thanks.

David

ip default-gateway is configured when the device is not routing ip. It is typically used on layer 2 switches can not route ip. It can be configured on layer 3 switches but would not be used unless the switch was not routing ip (could be the case if "no ip routing" is configured, or could happen if boots into (boot) mode rather than normal mode).

So for your core switches you would need to configure ip route statements for the various destinations (probably including an ip route 0.0.0.0 0.0.0.0 to allow users to access outside/public addresses.

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:

Review Cisco Networking products for a $25 gift card