INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

custom routes on 2960-S 48

custom routes on 2960-S 48

(OP)
I have a 2960 switch which is S version of ios but seem to be failing to do some really simple config

Basically I have four vlans 10,20,30,40
each of these is configured on the switch, for example . 192.168.10.9, 192.168.20.9, etc
I have two gateways, a new line and an old one, and want to move some services off the old link to the new

before the new line I have a gateway on the switch of 0.0.0.0 0.0.0.0 192.168.10.1 - this routes all traffic to the old line.

works fine

however if I then want to send a desktop out of the new line eg. ip route 192.168.10.2 255.255.255.255 192.168.10.2
it will never receive a response, now I know the link is goo, if I change the host gateway to the new link I can browse the web fine.

when pinging the host from the new line firewall it shows a loop between the switch and itself.

what have I missed here ?

RE: custom routes on 2960-S 48

(OP)
edit to above

eg. ip route 192.168.10.3 255.255.255.255 192.168.10.2

RE: custom routes on 2960-S 48

You seem to have a messed up idea of how to put in an ip route statement.

If you want to send traffic to the internet (0.0.0.0) down a different path, but just for one source PC (192.168.10.2), then your routing needs to say:
ROUTE SOURCEIP to DESTIP via TARGETIP

Normal routing does not look at source. Normal routing looks like:
ROUTE DESTIP via TARGETIP.

To route based on source, you need policy-based routing. I can't remember exactly, but I doubt a 2960 can do that.

If you want to use a Layer2 switch to route traffic (???why???) then the best you can do is probably stop routing using the Layer2 switch, create two different VLANs, associate each VLAN's subnet with a different ISP, and let the ISP routers handle it.

RE: custom routes on 2960-S 48

(OP)
as previously mentioned, we have an old lease line and a new one.

I wish to move all internal devices across to the new leased line in stages, eg. per department.

once users are all across to the new line the old line can be turned off and all ip routes removed other than that of
ip route 0.0.0.0 0.0.0.0 192.168.10.2

looks like these units do support policy based route mapping so this combines with a permit acl for those ranges being cut across will work nicely.

cool

RE: custom routes on 2960-S 48

If the 2960 supports PBR, you're set. Colour me amazed.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close