Altera_Forum
Honored Contributor
11 years agoNicheStack - changing IP address without rebooting
Hi,
is there a way of changing IP address of the Nios2 without rebooting the whole Nios? Looking through the sources of iniche I can see there is only a alt_iniche_init() procedure, but nothing for shutting it down or re-starting it... So far I have tried something like
tse_mac_close(0);
delete_network_tasks();
netmain();
create_network_tasks();
but instead of closing and reopening the same interface, it "discovers" a 2nd interface
....................................
prep_tse_mac 0
Your Ethernet MAC address is 00:07:35:04:b2:77
Static IP Address is 172.16.100.81
prepped 1 interface, initializing...
....................................
iniche restart triggered...
Deleting network tasks...DONE
InterNiche Portable TCP/IP, v3.1
Copyright 1996-2008 by InterNiche Technologies. All rights reserved.
prep_tse_mac 1
Your Ethernet MAC address is 00:07:35:04:b2:77
Static IP Address is 172.16.100.64
prepped 2 interfaces, initializing...
....................................
Thanks!