Expr add, Add a subexpression to an expression, Expr commands – Technicolor - Thomson ST585 V6 User Manual

Page 344

Advertising
background image

E-DOC-CTC-20061027-0004 v1.0

Expr Commands

320

expr add

Add 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}>]

i

If a value is preceded by a “!”, it means NOT.
For example “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

Advertising