The commands for network settings management are available at the network level. In this section it is possible to set and view the following parameters:
Name |
Description |
---|---|
dhcp |
Turning DHCP client on/off. By default, DHCP is off, and the IP address specified in settings is used. To turn DHCP on, use the following command: PMC> set network dhcp on To view the settings received over DHCP, use the following command: PMC> show network status |
ip |
Static IP address of the device; default value: 192.168.1.2. To set the IP address, use the following command: PMC> set network ip <IP_adrress> To display the IP address, use the following command: PMC> show network ip It is also possible to reset the parameter value to the default value: PMC> delete network ip |
netmask |
Subnet mask; default value: 255.255.255.0. To change the subnet mask, use the following command: PMC> set network netmask <netmask_value> To view the current subnet mask, use the following command: PMC> show network netmask It is also possible to reset the parameter value to the default value: PMC> delete network netmask |
gateway |
Default gateway; default value: 192.168.1.1. To change the default gateway, use the following command: PMC> set network gateway <gateway_address> To view the current address of the default gateway, use the following command: PMC> show network gateway To reset the parameter to the default value, use the following command: PMC> delete network gateway |
vlan |
VLAN ID; the default value is 0. In this mode the device receives all packets and does not use VLAN Tag when sending packets. If the value is not 0, then all packets with a tag other than the one set or no tag at all will be filtered out. When the packet is sent, the specified value of the parameter is added to the Ethernet header. To change the value, use the following command: PMC> set network vlan <VLANID_value> To view the current value, use the following command: PMC> show network vlan To set the default value, use the following command: PMC> delete network vlan |
arp |
ARP record table. By default the ARP table of the device is empty. When communicating with other network nodes dynamic records are added to the table. These records have a short lifetime and are always removed after the device is restarted. It is possible to add static ARP records to the table. When adding a static record it is necessary to specify IP address and MAC address. If a destination IP address is present in the table, then when the packet is sent, the device does not perform an ARP request, but inserts the MAC address from the table into the Ethernet header. To add static ARP records, use the following command: PMC> network arp <IP_address> <HW_address> To view the ARP table, use the following command: PMC> show network arp To clear the table, use the following command: PMC> delete network arp In addition to clearing the entire table it is possible to remove a single ARP record; to do it, specify its IP address: PMC> delete network arp <IP_address> |
ssh-port |
The port which is used for incoming PMC SSH connections. Default value: 22. To change the connection port, use the following command: PMC> set network ssh-port <port_number> To view the current value of the parameter, use the following command: PMC> show network ssh-port To restore the default value of the parameter, use the following command: PMC> delete network ssh-port |
nameserver |
DNS server address. By default DNS server address is not set and is equal to 0.0.0.0. To change this value, use the following command: PMC> set network nameserver <IP-address> To view the value, use the following command: PMC> show network nameserver |
rule |
Access rules for MGMT port. They allow to create white and black lists of IP addresses for access to the PMC. Examples of adding rules: PMC> set network rule allow 192.168.1.1 192.168.1.20 Access rule added successfully PMC> set network rule drop 192.168.1.5 192.168.1.10 Access rule added successfully To view a rule, use the following command: PMC> show network rule To remove a rule, use the following command: PMC> delete network rule <IP-addresses> |
To view the values of all parameters at the network level, use the following command:
PMC> show network
After network parameters are changed, they are stored in non-volatile memory.
The delete action allows to reset the value of a specific parameter or the values of all parameters to default values:
PMC> delete network