E-DOC-CTC-20061027-0003v2.0
Expr Commands
328
expr addAdd a subexpression to an expression.
SYNTAX:
where:
expr add name = <string>
type = <{intf | ip | serv}>
addr [!]= <ip-range>
[intf [!]= <string>]
[intfgroup [!]= <{wan|local|lan|tunnel|dmz|guest} or number>]
[tos [!]= <number{0-255}>]
[precedence [!]= <IP precedence type> or <number>]
[dscp [!]= <DSCP name> or <number>]
[proto = <supported IP protocol name> or <number>]
[srcport [!]= <supported TCP/UDP port name> or <number>]
[srcportend = <supported TCP/UDP port name> or <number>]
[dstport [!]= <supported TCP/UDP port name> or <number>]
[dstportend = <supported TCP/UDP port name> or <number>]
[icmptype [!]= <supported ICMP type name> or <number>]
[icmpcode [!]= <number{0-15}>]
[icmpcodeend = <number{0-15}>]
iIf a value is preceded by a “!”, it means NOT.
Forexample “intfgroup=!wan” means “if the interface group is different from WAN”.
name The name of an existing expression. REQUIRED
type The expression type.
Choose between:
>intf
>ip
>serv.
REQUIRED
addr The IP address (or range). Supports ip/mask notation.
Note Only for expression type ip.
REQUIRED
intf The IP interface name.
Note Only for expression type intf.
OPTIONAL