---
title: "Define Static IP Address"
slug: "define-static-ip-address"
updated: 2024-06-07T07:35:17Z
published: 2024-06-07T07:35:17Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zpesystems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Define Static IP Address

If no DHCP server is available on the network, or to change from a dynamic to static IP, configure the network parameters.

#### WebUI Procedure

1. Go to *Network :: Connections*.
2. Click on the Interface to be configured (displays dialog).![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/image-1678117521488.png)
3. Enter the required details.
4. Click **Save**.

#### CLI Procedure

1. Go to the desired network Interface and configure the network interface:

```none
cd settings/network_connections/ETH0/
set ipv4_mode=static
set ipv4_address=<IP_ADDRESS> ipv4_bitmask=<BITMASK> ipv4_gateway=<GATEWAY>
commit
```
2. Repeat for other interfaces.

**Example**:

```none
[admin@Nodegrid /]# cd settings/network_connections/ETH0/
[admin@Nodegrid ETH0]# set ipv4_mode=static
[+admin@Nodegrid ETH0]# set ipv4_address=10.0.0.10 ipv4_bitmask=24  ipv4_gateway=10.0.0.1
[+admin@Nodegrid ETH0]# show
name: ETH0
type: ethernet
ethernet_interface = eth0
connect_automatically = yes
set_as_primary_connection = no
enable_lldp = no
ipv4_mode = static
ipv4_address = 10.0.0.10
ipv4_bitmask = 24
ipv4_gateway = 10.0.0.1
ipv4_dns_server =
ipv4_dns_search =
ipv6_mode = address_auto_configuration
ipv6_dns_server =
ipv6_dns_search =
[+admin@Nodegrid ETH0]# commit
[admin@Nodegrid ETH0]#
```
