# Modify Network Settings from CLI

**URL:** <https://www.wago.community/t/modify-network-settings-from-cli/691>\
**Category:** Hardware and Linux\
**Tags:** pfc200, tp600\
**Created:** [November 22, 2023, 10:50pm UTC](https://www.wago.community/t/modify-network-settings-from-cli/691 "2023-11-22T22:50:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikePsaltis](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/mikepsaltis/32/47_2.png) [@MikePsaltis](https://www.wago.community/u/MikePsaltis)\
**Post date:** [November 22, 2023, 10:50pm UTC](https://www.wago.community/t/modify-network-settings-from-cli/691/1 "2023-11-22T22:50:59Z")

</div>

Hello,

Is it possible to edit the IP address source (DHCP/Static), IP address and other network settings from the CLI on a TP600? I am familiar with the CBM on the PFC200, but cannot find the correct configuration file to make these adjustment from a terminal.

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/michael/32/271_2.png) [@Michael](https://www.wago.community/u/Michael)\
**Post date:** [November 23, 2023, 6:40am UTC](https://www.wago.community/t/modify-network-settings-from-cli/691/2 "2023-11-23T06:40:51Z")

</div>

Hello MikePsaltis,  
You can use the Wago-Config-Tools which you can find in this Path: /etc/config-tools/ on the TP600 or PFC you get access to functions which are used by the WBM and CBM.  
you can run the scripts with an “-h” to get an description

 ![grafik](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/1c11eda6331b08992db320b9701d53394fab4aae.png)

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [November 23, 2023, 2:09pm UTC](https://www.wago.community/t/modify-network-settings-from-cli/691/3 "2023-11-23T14:09:20Z")

</div>

Just a hint here : every action in the WBM is done using a script in config-tools.  
When I want to get the corresponding script call to an action in WBM, I do it in the WBM, and then I go to the log file /var/log/sudo.log to get it.  
Exemple when setting static IP

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/e9558908a842c62f05e4d58e46b057ab568bf3f8.png)

Be careful sometimes a simple click requires the call of several scripts.

---

<div class="post-metadata">

**Author:** ![sommerz](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@sommerz](https://www.wago.community/u/sommerz)\
**Post date:** [November 27, 2023, 10:29am UTC](https://www.wago.community/t/modify-network-settings-from-cli/691/4 "2023-11-27T10:29:32Z")

</div>

I have found that the simplest way to do this for the CC100 is to directly change the netconfd.json in /etc/specific/  
I assume the same thing works for the TP600/PFC200

I automate a lot of this stuff using bash scripts that I run on a connected machine.  
Here is a snippet from one of them:

```auto
#!/bin/bash

echo "Setting IP"

#Command may not complete before SSH connection breaks, therefore a timeout is used.

timeout 10s sshpass -p 'wago' ssh root@192.168.1.17 "echo '
{
  \"bridge-config\": {
    \"br0\": [
      \"X1\",
      \"X2\"
    ]
  },
  \"ip-config\": {
    \"br0\": {
      \"bcast\": \"192.168.1.255\",
      \"ipaddr\": \"192.168.1.10\",
      \"netmask\": \"255.255.255.0\",
      \"source\": \"static\"
    }
  }
}' > /etc/specific/netconfd.json && sudo /etc/init.d/netconfd restart; exit"

```

If you want to do the same thing manually you just ssh into the controller and open the netconfd.json in vim/nano and change what you want to change. Just remember to run the “sudo /etc/init.d/netconfd restart” command to apply the changes.

edit: Oh, and also the SSH connection might hang when you apply the settings, seeing as you change the IP and all 😁
