change local_ip_v4 variable

Status
Not open for further replies.

ehrenmann1977

New Member
Mar 7, 2023
4
0
1
47
hi
i have in my server multiple ip addresses, the main one is not the correct ip address that the server has to listen to. I need to create a new variable, that should get the bridge 0 ip, how can i write a command. I tried to do it, but i don't understand { and $ in the variable, sometimes there are two $$. Can somebody help me .
 

cemotyz09

Member
Apr 23, 2020
83
7
8
I believe you can set it in default settings as a $$ (global) $ is a single channel variable so per call or something
 

ehrenmann1977

New Member
Mar 7, 2023
4
0
1
47
i tried to read on it but found that it is set internally upon starting, do you know can i set it in vars?
lets say i want to set a new variable called x, but i want to assign it to the ip of my br0,i use this
ip addr show br0 | grep 'inet '
to get the ip, how can i set this variable to run this command.
 
Status
Not open for further replies.