I'm trying to set the static IPs on nvram set dhcp_staticlist via a file.
I can set them fine if I pass a long string via the command, like the example below:
I am unable to get this to work by passing a file instead of the string. The command I'm using is:
The file contains one long string:
When I run the command above, the static IP list is cleared, and it's empty.
What am I doing wrong?
I can set them fine if I pass a long string via the command, like the example below:
Code:
nvram set dhcp_staticlist="<MAC:1>192.168.3.111>Unit1><MAC:2>192.168.3.112>Unit2><MAC:3>192.168.3.113>Unit3>"
I am unable to get this to work by passing a file instead of the string. The command I'm using is:
Code:
nvram set dhcp_staticlist=/tmp/file.txt
Code:
<MAC:1>192.168.3.111>Unit1><MAC:2>192.168.3.112>Unit2><MAC:3>192.168.3.113>Unit3>
When I run the command above, the static IP list is cleared, and it's empty.
What am I doing wrong?
Last edited: