(network-configuration)= # Network configuration **Setting a static IP address.** Do this from the console, because the SSH session is lost when the address changes (reconnect after change of the IP is possible, but there is a risc of cut off yourself). Replace the example addresses with your own. ``` set ietf-interfaces:interfaces/interface[name='br0']/ietf-ip:ipv4/czechlight-network:dhcp-client/czechlight-network:enabled false set ietf-interfaces:interfaces/interface[name='br0']/ietf-ip:ipv4/ietf-ip:address[ip='NEW_IP']/ietf-ip:prefix-length 24 set ietf-routing:routing/control-plane-protocols/control-plane-protocol[type=ietf-routing:static][name='static']/static-routes/ietf-ipv4-unicast-routing:ipv4/ietf-ipv4-unicast-routing:route[destination-prefix='0.0.0.0/0']/ietf-ipv4-unicast-routing:next-hop/ietf-ipv4-unicast-routing:outgoing-interface br0 set ietf-routing:routing/control-plane-protocols/control-plane-protocol[type=ietf-routing:static][name='static']/static-routes/ietf-ipv4-unicast-routing:ipv4/ietf-ipv4-unicast-routing:route[destination-prefix='0.0.0.0/0']/ietf-ipv4-unicast-routing:next-hop/ietf-ipv4-unicast-routing:next-hop-address "NEW_DEFGW_IP" commit copy running startup ``` **Check the result:** ``` get /ietf-interfaces:interfaces/interface[name='br0']/ get /ietf-system:system ```