ZyXEL P-660HN-T1A Support Guide - Page 74

ip policyrouting set active

Page 74 highlights

P-660HN Series Support Notes interface or a remote node, in the same fashion as the filters. There are 12 policy sets with 6 policies in each set.  Setup the IP Policy Routing Setp 1: Set the index of IP routing policy set rule by command „ip policyrouting set index [set#] [rule#]‟. Suppose set#=1, rule#=1 in this example. Step 2: Suppose we‟d like to edit the rule like this: Policy Set Name=Test Active= Yes Criteria: IP Protocol = 6 Type of Service= Don't Care Packet length= 0 Precedence = Don't Care Len Comp= N/A Source: addr start= 192.168.1.2 end= 192.168.1.20 port start= 0 end= N/A Destination: addr start= 0.0.0.0 end= N/A port start= 80 end= 80 Action= Matched Gateway addr = 192.168.1.254 Log= No Type of Service= No Change Precedence = No Change This policy example forces the Web packets originated from the clients with IP addresses from 192.168.1.2 to 192.168.1.20 be routed to the remote LAN via the gateway 192.168.1.254. To implement this, we need to invoke the following command one by one: ip policyrouting set name Test (Set the name as Test of IP routing policy rule ) ip policyrouting set active yes (Enable the rule) ip policyrouting set criteria protocol 6 (Set the protocol ID as 6(TCP) for the rule) ip policyrouting set criteria serviceType 0 (Set the criteria type of service as don‟t care for this rule) ip policyrouting set criteria precedence 8 (Set the precedence as don‟t care for this rule) 74 All contents copyright © 2010 ZyXEL Communications Corporation.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118

P-660HN Series Support Notes
74
All contents copyright © 2010 ZyXEL Communications Corporation.
interface or a remote node, in the same fashion as the filters. There are 12
policy sets with 6 policies in each set.
Setup the IP Policy Routing
Setp 1: Set the index of IP routing policy set rule by command
ip
policyrouting set index [set#] [rule#]
. Suppose set#=1, rule#=1 in this
example.
Step 2: Suppose we
d like to edit the rule like this:
Policy Set Name=
Test
Active=
Yes
Criteria:
IP Protocol =
6
Type of Service=
Don't Care
Packet length=
0
Precedence =
Don't Care
Len Comp= N/A
Source:
addr start=
192.168.1.2
end=
192.168.1.20
port start=
0
end= N/A
Destination:
addr start=
0.0.0.0
end= N/A
port start=
80
end=
80
Action=
Matched
Gateway addr =
192.168.1.254
Log=
No
Type of Service= No Change
Precedence = No Change
This policy example forces the Web packets originated from the clients with IP
addresses from 192.168.1.2 to 192.168.1.20 be routed to the remote LAN via
the gateway 192.168.1.254.
To implement this, we need to invoke the following command one by one:
ip policyrouting set name
Test
(Set the name as Test of IP routing policy rule )
ip policyrouting set active
yes
(Enable the rule)
ip policyrouting set criteria protocol
6
(Set the protocol ID as 6(TCP) for the rule)
ip policyrouting set criteria serviceType
0
(Set the criteria type of service as don
t care for this rule)
ip policyrouting set criteria precedence
8
(Set the precedence as don
t care for this rule)