W
W
Wadimkas2016-02-26 21:48:37
telnet
Wadimkas, 2016-02-26 21:48:37

How to change IP address via telnet for NETIS WF2411 Router?

I connect from my program via telnet, there are network interfaces br0, Eth0, Eth1, Wlan0, Lo I upload
a script to change the MAC using wget :
ifconfig eth0 down
ifconfig eth0 hw ether 0050c28d6c80
ifconfig eth0 up
everything is normal, eth0 rises and the MAC of the gateway I installed.
but I can’t change the IP address (for the local network) in any way
; the one from which it distributes via DHCP to the network, on the router 192.168.1.1
I do this:
ifconfig eth0 down
ifconfig eth0 inet 192.168.10.22 netmask 255.255.255.0
ifconfig eth0 up
ip changes if you look with ifconfig but the gateway remains 192.168.1.1
if I use the same for br0, then the router then stops responding at all, only off-on helps.
I understand that it is necessary to restart some service after changing the IP eth0?
Or what is the order of change? nvram there is no such command on the router, i.e. state cannot be saved before reboot.
but you can change it through the Web interface, so in theory you can do it through telnet.
thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question