Expr modify, Modify an expression, Expr commands – Technicolor - Thomson ST585 V6 User Manual

Page 355

Advertising
background image

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

Expr Commands

331

expr modify

Modify an expression.

SYN TAX:

where:

expr modify

name = <string>
type = <{intf | ip | serv}>
index = <number>
addr [!]= <ip-range>
[intf [!]= <string>]
[intfgroup [!]= <{wan|local|lan|tunnel|dmz|guest} or
number>]
[bridgeport [!]= <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 the expression to be modified.

REQUIRED

type

The expression type.
Choose between:

>

intf

>

ip

>

serv.

REQUIRED

number

The index of the subexpression to be modified.

Tip

Use the command

:expr list to obtain the indexes

of the subexpressions.

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