reboot

Graham Stoney greyham at research.canon.com.au
Thu Sep 14 12:53:56 EST 2000


Julia Elbert writes:
> I need to be able to change ip address and routing on the fly, not using the
> console port to do it.

You don't need to reboot to change the IP address and routing.

Use the SOICSIFADDR, SIOCSIFNETMASK, SIOCSIFBRADDR ioctls on a PF_INET socket
with the appropriate ifr_name (probably "eth0") to change the IP address.

Use SIOCDELRT and SOICADDRT to delete and add routes.

No reboot required!

Regards,
Graham
--
Graham Stoney
Principal Hardware/Software Engineer
Canon Information Systems Research Australia
Ph: +61 2 9805 2909  Fax: +61 2 9805 2929

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list