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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

static route

Good Day!

i have brought 2 layer 3 switch.i just need to test 2 static route.how can i connect the 2 switch?via 2 crossover cable?how can i implement this Scenario.what is the configuration at both side?some have a link similar to my scenario.

10xs for ur help.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: static route

hi ali,

you can go through this

switch 1

ip routing

int gig0/1 (your configuration is int gig 0/2)

no switchport

ip addrerss 192.168.1.1 255.255.255.252

int gig0/2

no switchport

ip address 192.168.2.1 255.255.255.252

!

ip route 10.10.1.0 255.255.255.0 192.168.1.2 10

ip route 10.10.1.0 255.255.255.0 192.168.2.2 (you have configure 192.168.2.1, but it will be okay) 20

switch 2

ip routing

int gig0/1

no switchport

ip address 192.168.1.2 255.255.255.0

int g0/2

no switchport (you miss to configure it)

ip address 192.168.2.2 255.255.255.0

!

ip route 10.10.2.0 255.255.255.0 192.168.1.1 10

ip route 10.10.2.0 255.255.255.0 192.168.2.1 20

end

hope this will help...

rate this post if it helps

regards

Devang

11 REPLIES

Re: static route

hi ali,

you mean to say you want to connect the two switch with two cross cable it means you are going to have the redundant link between switch... at that time you can have two things one is STP and other you can have etherchannel so it up to you what you want...

one way is to connect two switch by converting the switch port to the routed port means layer 3 port and then you can connect it...using two cable and you can have the static routes ...

so its all on your requirement...so tell me what you need exactly...

rate this post if it helps

regards

Devang

Re: static route

Hi!

If you want to test two static routes, I dont understand how inter-connecting the 2 switches is going to help, They are going to perform routing anyway!

If you can be more clear what exactly do you want to do, then it maybe of some help to us and to you as well!!!

For performing routing on the L3 switches, enter the following commands at the 'Configure terminal' prompt.

- ip routing

- ip route SOURCE IP ADD MASK DESTINATION IP ADD MASK.

You can also put some interface in place of destination if you desire to.

This is the basic stuff. Maybe when you give more details, it would be better.

Please rate all posts.

Regards,

AbhisheK

New Member

Re: static route

Hi Friend

10xs for ur reply.i meant i need to test 2 static route.(i will perform ip routing) the test will be if the primary Link fail the 2nd will be take over.and when the primary link being available it will preempt the secondery.guys just for test.

10xs

Re: static route

ali...

so do one thing use any two port as layer 3 port and do same thing on other switch and then connect both the switches... and then configure ip routing and then go for the static routes and you can test the static route ...

and as per your requirement configure the statics route with the different AD... means configure one static route as usual of AD 1 and other with the AD of 100 ... so when the route with the AD 1 will not available at that time route with AD of 100 will be in use...

rate this post if it helps

regards

Devang

New Member

Re: static route

Hi friend!

10xs for response.have a look to this config;verify it and tell me where is the mistake!

switch 1

ip routing

int gig0/2

no switchport

ip addrerss 192.168.1.1 255.255.255.252

int gig0/2

no switchport

ip address 192.168.2.1 255.255.255.252

!

ip route 10.10.1.0 255.255.255.0 192.168.1.2 10

ip route 10.10.1.0 255.255.255.0 192.168.2.1 20

switch 2

ip routing

int gig0/1

no switchport

ip address 192.168.1.2 255.255.255.0

int g0/2

ip address 192.168.2.2 255.255.255.0

!

ip route 10.10.2.0 255.255.255.0 192.168.1.1 10

ip route 10.10.2.0 255.255.255.0 192.168.2.1 20

end

10xs for ur time.

Re: static route

ali you have list your configurartion at there you have given two times same port on switch 1 which is interface gig 0/2 so correct that one and other is like in static route configuration use ip route 10.10.1.0 255.255.255.0 192.168.2.2 20 ...

and i think you have networks 10.10.1.0 and 10.10.2.0 is connected with the appropriate switch and you are going to make reachable both the network using static route right...

hope this will help you...

rate this post if it helps

regards

Devang

New Member

Re: static route

Hi devang!

where is my error in this config?could u pls defined it?

10xs

Re: static route

hi ali,

you can go through this

switch 1

ip routing

int gig0/1 (your configuration is int gig 0/2)

no switchport

ip addrerss 192.168.1.1 255.255.255.252

int gig0/2

no switchport

ip address 192.168.2.1 255.255.255.252

!

ip route 10.10.1.0 255.255.255.0 192.168.1.2 10

ip route 10.10.1.0 255.255.255.0 192.168.2.2 (you have configure 192.168.2.1, but it will be okay) 20

switch 2

ip routing

int gig0/1

no switchport

ip address 192.168.1.2 255.255.255.0

int g0/2

no switchport (you miss to configure it)

ip address 192.168.2.2 255.255.255.0

!

ip route 10.10.2.0 255.255.255.0 192.168.1.1 10

ip route 10.10.2.0 255.255.255.0 192.168.2.1 20

end

hope this will help...

rate this post if it helps

regards

Devang

New Member

Re: static route

Hi Devang.

thank u friend for ur help.Devange i miss my friend Ankur in this forum.u miss him also?all thanks to Ankur.

Ali

Re: static route

hi Ali,

thanks for the rating post...

yes i also miss ankur... he is very nice guy and give reply to all issues and also give good explenation ... Rick is also good one he is also gvining very nice reply to all the post...

ali your username is your email id, if yes then can i mail you???

thanks again

regards

Devang

New Member

Re: static route

HI Freind;This is was my e-mail when i was working in the Goverment section,now i work in a big Enterprise'all product are Cisco System we have 10 6509 8 of them sup720& 2 sup1.B/W This is the first time that i have working in a cisco product.i dont have any certification from cisco.if u hope to mail me.u get me in the following ID:aldoctors@hotmail.com.

10xs

430
Views
15
Helpful
11
Replies
CreatePlease login to create content