The text of a manual · part 48 of 81
WS5000 Series Switch System Reference Guide: CH 8 CLI Command Reference, pages 433 to 442
Pages 433 to 442 of 728, from WS5000 Series Switch System Reference Guide
The original document is the PDF (12 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol WS-5000
Page 433
CLI Command Reference
8-201
2. LAN2 3. LAN_VPN 4. testLAN LAN information: LAN details... Name Description ep np allow deny NAT list:
: testLAN : : : : https http telnet ftp :
WS5000.(Cfg).Fw.[testLAN]>
8.34.2 addnat FW (Firewall) Context
This command is used to add a NAT (Network Address Translation) entry to a specific LAN/LAN+ VLAN combination. Syntax addnat <"remoteRealIp,localNatIp"> <lan_name> [vlanid] Parameters remoteRealIp
This is the real IP address of the remote end localNatIp
This is the IP address of the remote device as seen by the device accross the WS5000 switch.
lan_name
The LAN in which this NAT entry should be added to. Could be one of LAN 1 or LAN 2 or LAN_VPN.
vlanid
An optional VLAN ID.
Example WS5000.(Cfg).Fw> addnat "1.2.3.4,10.2.3.4" LAN1 Addng a NAT entry to a LAN... Status: Success. LAN information: Available LANs: 1. LAN1 2. LAN2 3. LAN_VPN WS5000.(Cfg).Fw> 1 LAN information: LAN details... Name Description ep np
: LAN1 : Public LAN : 1 :
Page 434
8-202
WS 5000 Series System Reference allow deny NAT list:
: https http telnet ftp :
1: 1.2.3.4,10.2.3.4 WS5000.(Cfg).Fw.[LAN1]>
8.34.3 addnp FW (Firewall) Context
This command is used to add a new NP (network policy) to the system. Syntax addnp <lan_name> <NP> enter remove to delete the existing NP. Parameters lan_name
The LAN in which this network policy should be added to. Could be one of LAN 1 or LAN 2 or LAN_VPN.
NP
The network policy name.
Example WS5000.(Cfg)> np Network Policy information Available Network Policies: 1. Default Network Policy. 2. NetVision_VoIP_Priority. 3. Spectralink Network Policy. WS5000.(Cfg).NP> add TestNP Adding Network Policy... Status: Success. Network Policy information Available Network Policies: 1. Default Network Policy. 2. NetVision_VoIP_Priority. 3. Spectralink Network Policy. 4. TestNP. Network Policy information Network Policy Name Policy Description Outbound Policy Object name Inbound Policy Object name WS5000.(Cfg).NP.[TestNP]>
WS5000.(Cfg)> fw
: TestNP : : :
Page 435
CLI Command Reference
8-203
LAN information: Available LANs: 1. LAN1 2. LAN2 3. LAN_VPN WS5000.(Cfg).Fw> addnp LAN2 TestNP Addng a NP (network policy) entry to a LAN... Status: Success. LAN information: Available LANs: 1. LAN1 2. LAN2 3. LAN_VPN WS5000.(Cfg).Fw> lan 2 LAN information: LAN details... Name Description ep np allow deny NAT list:
: LAN2 : Private LAN : 2 : TestNP : https http telnet ftp :
WS5000.(Cfg).Fw.[LAN2]>
8.34.4 addpf FW (Firewall) Context
This command is used to add a PF (port filter) to the system. Syntax addpf <lan_name> <allow/deny> <web/telnet/ftp> Parameters lan_name
The LAN in which this port filter should be added to. Could be one of LAN 1 or LAN 2 or LAN_VPN.
allow/deny
Allows or denies traffic to the specified port to the sytem .
web/telnet/ftp
Port to be allowed or denied
Example WS5000.(Cfg).Fw> addpf LAN1 allow telnet Addng a PF (Port Filter) to a LAN... Status: Success.
Page 436
8-204
WS 5000 Series System Reference
LAN information: Available LANs: 1. LAN1 2. LAN2 3. LAN_VPN WS5000.(Cfg).Fw>
8.34.5 lan FW (Firewall) Context
Use this command to select a LAN to configure. Syntax lan <lan_name> Parameters lan_name
LAN which is to be configured. Could be one of LAN 1 or LAN 2 or LAN_VPN.
Example WS5000.(Cfg).Fw> lan LAN1 LAN information: LAN details... Name Description ep np allow deny NAT list:
: LAN1 : Public LAN : 1 : : https http telnet ftp :
1: 1.2.3.4,10.2.3.4 WS5000.(Cfg).Fw.[LAN1]>
8.34.6 remove FW (Firewall) Context
This command is used to remove a LAN from the system. Syntax remove <lan_name> Parameters lan_name
LAN which is to be removed.
Example WS5000.(Cfg).Fw> remove testLAN Removing LAN... Status: Success.
Page 437
CLI Command Reference
8-205
LAN information: Available LANs: 1. LAN1 2. LAN2 3. LAN_VPN 4. lan WS5000.(Cfg).Fw>
8.34.7 show FW (Firewall) Context
This command is used to display the ACL information, security policy detials, LAN details and other context specific attributes. Syntax show acl show securitypolicy show show lan Parameters acl
Display ACL information securitypolicy
Display security policy details lan
Display LAN details
Example WS5000.(Cfg).Fw> show acl Available ACLs: 1. testACL. WS5000.(Cfg).Fw> WS5000.(Cfg).Fw> show securitypolicy Available Security Policies: 1. Kerberos Default. 2. Default. 3. WEP40 Default. 4. WEP128 Default. WS5000.(Cfg).Fw> WS5000.(Cfg).Fw> show lan LAN information: Available LANs: 1. LAN1 2. LAN2 3. LAN_VPN 4. lan
Page 438
8-206
WS 5000 Series System Reference
WS5000.(Cfg).Fw>
Page 439
CLI Command Reference
8-207
8.35 FW Instance Table 8.40 Firewall Instance Command Summary Command
Description
Ref.
.. or end
Terminate a current session and moves up a context, hierarchically.
page 8-7 exit
Terminate a current session and returns to the “root” prompt.
page 8-7
? or help
Get the command information.
page 8-7 logout or bye
Close this session.
page 8-8 clear
Clear the screen.
page 8-8 description
Set description text.
page 8-15 set
Configure the LAN.
page 8-207 show
Display context specific attributes.
page 8-208
8.35.1 set
Instance This command is used to configure LAN parameters. Syntax set <config_parameter> <parameter_value> Parameters description
Set the LAN description text.
ep
Set the ethernet port.
np
Set the network policy.
addnat
Add a NAT entry "remoteRealIp,localNatIp" addrange
Add range of NAT entries "remoteRealIp,localNatIp,num" delnat
Delete a NAT entry "remoteRealIp,localNatIp" delrange
Delete range of NAT entries "remoteRealIp,localNatIp,num” allow
Allow management traffic "http|https|telnet|ftp" deny
Deny management traffic "http|https|telnet|ftp"
Example WS5000.(Cfg).Fw.[LAN1]> set np "Default Network Policy" Configuring a LAN... Status: Success.
Page 440
8-208
WS 5000 Series System Reference
LAN information: LAN details... Name Description ep np allow deny NAT list: 1: 1.2.3.4,10.2.3.4
: LAN1 : Public LAN : 1 : Default Network Policy : https http telnet ftp :
WS5000.(Cfg).Fw.[LAN1]>
8.35.2 show
Instance This command is used to display firewalls LAN information. Syntax show Parameters
None Example WS5000.(Cfg).Fw.[LAN1]> show LAN information: LAN details... Name Description ep np allow deny NAT list: 1: 1.2.3.4,10.2.3.4 WS5000.(Cfg).Fw.[LAN1]>
: LAN1 : Public LAN : : Default Network Policy : https http telnet ftp :
Page 441
8-209
CLI Command Reference
8.36 Host Context The Host context collects the various hosts that are declared in other contexts. Table 8.41 summarizes the commands within this context. Common commands between multiple contexts are described in further detail in the Common Commands section. Table 8.41 Host Context Command Summary Command
Description
Ref.
.. or end
Terminate a current session and moves up a context, hierarchically.
page 8-7 exit
Terminate a current session and returns to the “root” prompt.
page 8-7
? or help
Get the command information.
page 8-7 logout or bye
Close this session.
page 8-8 clear
Clear the screen.
page 8-8 add
Add a host to the system.
page 8-209 emergencymode
Enable or disable Emergency mode.
page 8-8 host
Configure attributes for a particular host.
page 8-210 remove
Remove a defined host on the system.
page 8-210 show
Display available host details.
page 8-210
8.36.1 add
Context Adds a new host to the system. Syntax add host <name> <IP_address> [domain] Parameters name
Name given to the host.
IP_address
IP address of the host.
domain
Optional domain of the host.
Example WS5000.(Cfg).Host> add NYhost 111.222.111.30 NYdomain Adding Host... Status: Success. Host Name --------NYhost
IP Address ---------111.222.111.30
WS5000.(Cfg).Host.[NYhost]>
Domain -----NYdomain
Page 442
8-210
WS 5000 Series System Reference
8.36.2 host
Context Changes the prompt to the context of a specified Host instance context. Syntax edit <host> Parameters host
The name of the host that you want to edit.
Example WS5000.(Cfg).Host> host NYhost Host Name --------NYhost
IP Address ---------111.222.111.30
Domain -----NYdomain
WS5000.(Cfg).Host.[NYhost]>
8.36.3 remove
Context Removes a host from the host list. Syntax remove <host_name> Parameters host_name
The name of the host to be removed.
Example WS5000.(Cfg).Host> remove NYhost Host Name --------WS5000.(Cfg).Host>
8.36.4 show
Context Display host information. Syntax show show host show syslog show system
IP Address ----------
Domain ------