- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- LAN Routing
- >
- routes for certain subnet
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2015 06:18 AM
тАО10-29-2015 06:18 AM
routes for certain subnet
hi all,
in the screenshot below is my route table on our procurve switch
atm all out networks are going out via our tmg router (0.0.0.0/0 172.16.24.65) but i want to make a particular network go out via our other router pfsense (10.8.0.0/24 10.10.20.254)
now if i do this will it mess up with the routes because atm the 10.8.0.0/24 has a gateway on the switch and so do all the other networks, so will all the other networks try to go out via the pfsense instead of the tmg which obviously i dont want to do
thanks so much
rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2015 06:38 AM
тАО10-29-2015 06:38 AM
Re: routes for certain subnet
Hello. What platform? A classifier & policy based route would do it, but depends on the hardware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2015 07:14 AM - edited тАО10-29-2015 07:42 AM
тАО10-29-2015 07:14 AM - edited тАО10-29-2015 07:42 AM
Re: routes for certain subnet
its a hp procurve 8212zl (j9091a)
but cant i just change the route for that one subnet to
ip route 10.8.0.0/24 10.10.20.254, will this work, if it does my question is it WONT effect all the other networks going to the tmg firewall ie 0.0.0.0/0 172.16.24.65?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2015 08:24 AM
тАО10-29-2015 08:24 AM
Re: routes for certain subnet
Yes, it will apply to all sources. 10.8.0.0/24 in "ip route 10.8.0.0/24 10.10.20.254" is the destination network. Any source going to 10.8.0.0/24 will be sent to the 10.10.20.254 next hop.
What version modules do you have (show modules)? For PBR to work in this case you'll need v2 modules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2015 09:44 AM - edited тАО10-29-2015 09:55 AM
тАО10-29-2015 09:44 AM - edited тАО10-29-2015 09:55 AM
Re: routes for certain subnet
but the 10.8.0.0/24 has already got a gateway on the switch of 10.8.0.254, is it ok to make a static route to route to 10.10.20.254, and this wont affect my other networks going to the tmg firewall?
EDIT - all my modules are v1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2015 01:41 PM
тАО10-29-2015 01:41 PM
Re: routes for certain subnet
Ah, I didn't see the connected route there already. Adding "ip route 10.8.0.0/24 10.10.20.254" will just add a less preferred route (distance = 1) such that if the current connected route (distance = 0) were to become unavailable the static route would become active. It would cause no change in the current routing table.
HP-8212zl(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
------------------ --------------- ---- --------- ---------- ---------- -----
0.0.0.0/0 128.44.120.1 1 static 250 1
10.8.0.0/24 VLAN100 100 connected 1 0
10.10.20.0/23 VLAN200 200 connected 1 0
HP-8212zl(config)# ip route 10.8.0.0/24 10.10.20.254
HP-8212zl(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
------------------ --------------- ---- --------- ---------- ---------- -----
0.0.0.0/0 128.44.120.1 1 static 250 1
10.8.0.0/24 VLAN100 100 connected 1 0
10.10.20.0/23 VLAN200 200 connected 1 0
HP-8212zl(config)# int c1 dis
I 10/29/15 18:18:31 00077 ports: AM1: port C1 is now off-line
I 10/29/15 18:18:31 00002 vlan: AM1: VLAN100 virtual LAN disabled
HP-8212zl(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
------------------ --------------- ---- --------- ---------- ---------- -----
0.0.0.0/0 128.44.120.1 1 static 250 1
10.8.0.0/24 10.10.20.254 200 static 1 1
10.10.20.0/23 VLAN200 200 connected 1 0
Removing or disabling routing on the VPN VLAN would have the same effect, but it would leave hosts on that VLAN stranded.