98
| Command Line Reference | SmartNA-X 1G/10G Modular
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
show ipv4
Use the
show ipv4
command to show the current network interface IPv4 settings, including mode (static or dynamic),
IPv4 address, IPv4 gateway, netmask, and any configured DNS server.
Syntax
show ipv4
Parameters
This command has no arguments or keywords.
Example
Report IPv4 address:
CONTROLLER>
show ipv4
IPv4 Addressing Mode : static
IPv4 Address: 192.168.0.122
IPv4 Netmask: 255.255.255.0
IPv4 Gateway: 192.168.0.254
IPv4 DNS Server: None configured
set ipv4 static
Use the
set IPv4 static
command to define static IPv4 network settings. Changes to network interface settings are
implemented after exiting the CLI, or immediately if connecting over IPv6 or via the Console port.
Syntax
set ipv4 static
ipv4-address
netmask
[
gateway
gateway-address
]
Parameters
•
ipv4-address
Specify the network interface IPv4 address in dotted-decimal format (a.b.c.d).
•
netmask
Specify a subnet mask (netmask).
•
gateway
gateway-address
(Optional) Specify a gateway address.
Example
Define the following static IPv4 network settings, and then exit the CLI to implement:
• Network Address: 192.168.0.122
• Netmask: 255.255.255.0
• Gateway address: 192.168.0.1
CONTROLLER>
set ipv4 static 192.168.0.122 255.255.255.0 gateway 192.168.0.1
Network settings will take effect when you exit CLI.
exit to enable new network settings
CONTROLLER>
exit
Exiting CLI
exit to enable new network settings
Applying new IPv4 network settings
Addressing Mode : static
Address: 192.168.0.122
Netmask: 255.255.255.0
Gateway: 192.168.0.254
Connection to 192.168.0.122 closed.
set ipv4 gateway
Use the
set ipv4 gateway
command to define a gateway address for inter-network routing. Changes to network interface
settings are implemented after exiting the CLI, or immediately if connecting over IPv6 or via the Console port.