Are you sure about it.ljoets wrote:Gateway is 192.168.0.254
Usually the gateway is the ip address of your router and is usual to get 192.168.0.1 as IP
I assume that the nwsp1 disk is sdc (in a previous output I saw this value)
So in a root terminal,
mount the partition sdc5 on a temporary mountpoint
- Code: Select all
mkdir /tmp/sdc5
mount /dev/sdc5 /tmp/sdc5
do this sed command to edit the nas database
- Code: Select all
sed -rie 's#.*dhcpenabled.*#\t\t<dhcpenabled>false</dhcpenabled>#g;s#.*dnsserver.*$##g;s#(\t</system>).*#\t\t<dnsserver>192.168.0.254</dnsserver>\n\1#g;s#.*netmask.*#\t\t\t<netmask>255.255.255.0</netmask>#g;s#.*ipaddr.*#\t\t\t<ipaddr>192.168.0.52</ipaddr>#g;s#.*gateway.*#\t\t\t<gateway>192.168.0.254</gateway>#g' /tmp/sdc5/etc/nas_conf_db.xml
(if 192.168.0.254 is not your gateway change all values by 192.168.0.1 in the command line)