Switches, Hubs, and Modems
1753511 Members
5051 Online
108795 Solutions
New Discussion юеВ

Routing Question

 
Grant Carmichael
Occasional Advisor

Routing Question

For simplicity, lets say you have two VLANs.

VLAN Servers 10.200.205.0/24
VLAN Clients 10.200.204.0/24

In the config, you have:

ip route 0.0.0.0 0.0.0.0 10.150.0.15

Now, we add a student VLAN

VLAN Students 10.200.203.0/24

However, we want to students to have access to the server VLAN, but for Internet traffic, they should be routed to 10.150.0.16. How would you do this? Would adding a route like the one below have the desired outcome?

ip route 10.200.203.0 255.255.255.0 10.150.0.16
3 REPLIES 3
Case Van Horsen
Frequent Advisor

Re: Routing Question

Grant,

The ip route statement is based on destination address. You are trying to route based on source IP address. That is typically called Policy Based Routing.

What switches/routers do you have?

casevh
Grant Carmichael
Occasional Advisor

Re: Routing Question

thanks! we've got the 5308xl
cenk sasmaztin
Honored Contributor

Re: Routing Question

hi
you make frist ip routing command on switch

after you on switch write this static ip routing command
ip route 0.0.0.0 0.0.0.0 10.150.0.16

and you on internet router to write

ip route 10.200.205.0 255.255.255.0 10.200.205.1(vlan ip address)

ip route 10.200.204.0 255.255.255.0 10.200.204.1(vlan ip address)

ip route 10.200.203.0 255.255.255.0 10.200.203.1(vlan ip address)

good luck
cenk