{"id":329,"date":"2017-08-02T21:18:34","date_gmt":"2017-08-02T21:18:34","guid":{"rendered":"http:\/\/10.10.1.214\/?p=329"},"modified":"2026-11-04T21:18:47","modified_gmt":"2026-11-04T21:18:47","slug":"policy-routing-on-smartnodes","status":"publish","type":"post","link":"https:\/\/blog.patton.com\/index.php\/2017\/08\/02\/policy-routing-on-smartnodes\/","title":{"rendered":"Policy Routing on SmartNodes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.patton.com\/wp-content\/uploads\/2026\/11\/config-elements.jpg\" alt=\"Configuration Elements\" width=\"900\" height=\"300\">Patton SmartNodes are not just gateways. The SmartNode includes a very powerfull IP routing engine that includes features usually only found in much more expensive networking devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This post introduces the Policy Routing feature in some detail to underline the statement above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A typical IP CPE router includes an IP routing table which can be populated with<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A default route<\/li>\n\n\n\n<li>Static routes<\/li>\n\n\n\n<li>Automatically learned routes from DHCP, ICMP and maybe some routing protocols (RIP, OSPF)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A Patton router goes beyond this. It allows you to configure <strong>multiple routing tables<\/strong> and to chose very specifically which traffic uses which routing table.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this way it is possible to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Setup multiple virtual routers in one device<\/strong><\/li>\n\n\n\n<li><strong>Separate multiple IP networks routed through the same device<\/strong><\/li>\n\n\n\n<li><strong>Control in detail how different applications and traffic streams are handled on the network<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Typical applications for this functionality include<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Separation of user-traffic and network-management-traffic<\/strong><\/li>\n\n\n\n<li><strong>Separation of voice and data networks and traffic<\/strong><\/li>\n\n\n\n<li><strong>Combination of VPN traffic routing and public internet traffic routing on one device<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The configuration setup for this functionality is clearly structured and highly flexible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start by <strong>creating multiple routing tables<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><br><code><br>routing-table <strong>PUBLIC<\/strong><br>route 0.0.0.0\/0 gateway 192.168.100.2 metric 0<\/code><br><code><br>routing-table <strong>MGMT<\/strong><br>route 0.0.0.0\/0 gateway 192.168.200.2 metric 0<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now assign incoming IP traffic to one of the tables. This can be done with three different levels of detail depending on your requirements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Simple and generic: <strong>Assign all traffic coming in on a given IP Interface<\/strong> to a routing table<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong> <code>local route 1 dest-table MGMT<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>interface LAN<br>ipaddress LAN 10.10.10.1\/24<br>route 1 dest-table PUBLIC<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>More specific: <strong>Assign traffic to routing tables based on rules<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>local<br>route 1 protocol udp src-port 5060 dest-table VOICE<br>route 2 protocol tcp src-port 5060 dest-table VOICE<br>route 3 protocol udp src-port 4864..5375 dest-table VOICE<br>route 4 protocol tcp src-port 80 dest-table MGMT<br>route 5 protocol tcp src-port 23 dest-table MGMT<\/code><br><code><br>interface LAN<br>ipaddress LAN 10.10.10.1\/24<br>route 1 protocol udp src-port 5060 dest-table VOICE<br>route 2 protocol tcp src-port 5060 dest-table VOICE<br>route 3 protocol udp src-port 4000..4099 dest-table VOICE<br>route 4 dest-table PUBLIC<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Very detailed: <strong>Assign traffic to routing tables based on traffic classes<\/strong>. This third option makes use of the powerful traffic classifier profiles which are also used for traffic management and quality of service functionalities.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>profile classifier CL_MGMT<br>match 1 protocol tcp src-port 80 set traffic-class TC_MGMT<br>match 2 protocol tcp src-port 23 set traffic-class TC_MGMT<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>profile classifier CL_SIP_SIG<br>match 1 protocol udp src-port 5060 set traffic-class TC_SIP_SIG<br>match 2 protocol tcp src-port 5060 set traffic-class TC_SIP_SIG<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>context ip ROUTER<br>local<br>use profile classifier out 1 CL_SIP_SIG<br>use profile classifier out 2 CL_MGMT<br>route 1 traffic-class local-voice dest-table VOICE<br>route 2 traffic-class TC_SIP_SIG dest-table VOICE<br>route 3 traffic-class TC_MGMT dest-table MGMT<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>interface LAN<br>ipaddress LAN 10.10.10.1\/24<br>use profile classifier in 1 CL_SIP_SIG<br>route 1 traffic-class TC_SIP_SIG dest-table VOICE<br>route 2 protocol udp src-port 4000..4099 dest-table VOICE<br>route 3 dest-table PUBLIC<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure provides an overview of the configuration elements used in this functionality:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"567\" src=\"https:\/\/blog.patton.com\/wp-content\/uploads\/2026\/11\/Capture.png\" alt=\"\" class=\"wp-image-330\" style=\"aspect-ratio:1.1534391534391535;width:654px;height:auto\" srcset=\"https:\/\/blog.patton.com\/wp-content\/uploads\/2026\/11\/Capture.png 654w, https:\/\/blog.patton.com\/wp-content\/uploads\/2026\/11\/Capture-300x260.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For more detail please refer to the current version of the <a href=\"https:\/\/www.patton.com\/manuals\/\">Trinity Command Line Reference Guide<\/a>. We hope this small feature introduction provides you with a little insight into the power of Patton Products and helps you solve specific network problems you may encounter in your daily work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Patton SmartNodes are not just gateways. The SmartNode includes a very powerfull IP routing engine that includes features usually only<\/p>\n","protected":false},"author":20,"featured_media":331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-329","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":1,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/posts\/329\/revisions\/332"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/media\/331"}],"wp:attachment":[{"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/categories?post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.patton.com\/index.php\/wp-json\/wp\/v2\/tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}