10 GbE Gateway
(sRB-20210G Module) User Manual
Version 2.0
197
Mellanox Technologies
service add TCP
Description:
Sets a TCP service.
Sport
and
Dport
are respectively the source and destination ports.
Thus, if one or more of these ports are assigned a value other than
any
, the specific service will apply only to TCP packets that arrive on
the specified source port and are destined to the specified destination
port. Otherwise, the service will apply to TCP packets arriving and
outgoing on all ports. The
name
parameter is the user-defined service
name.
Syntax:
service add TCP [Sport|any][Dport|any][name]
Example:
sRB-20210G-61f0(config-service)# service add TCP 80 30 aviTcp
Expected results:
sRB-20210G-61f0(config-service)# service show
entry name protocol Sport Dport type
|------|----------|---------|---------|---------|---------
1 any any any any any
2 aviTcp TCP 80 30 *
service add UDP
Description:
Sets a UDP service.
Sport
and
Dport
are respectively the source and
destination ports. Thus, if one or more of these ports are assigned a
value other than any, the specific service will apply only to UDP
packets that arrive on the specified source port and are destined to the
specified destination port. Otherwise, the service will apply to UDP
packets arriving and outgoing on all ports. The name is the
user-defined service name.
Syntax:
service add UDP [Sport|any][Dport|any][name]
Example:
sRB-20210G-61f0(config-service)# service add UDP any any MyUDP1
Expected results:
sRB-20210G-61f0(config-service)# service show
entry name protocol Sport Dport type
|------|-------|---------|---------|---------|---------
1 any any any any any
2 MYTCP TCP 80 30 *
3 MyUDP UDP 3085 80 *
4 V1 ICMP * * any
5 MyIGMP IGMP * * *
6 MyUDP1 UDP any any *
service remove
Description:
Removes a service defined in the gateway.