from linksys import * ls = LinkSys( "http://192.168.1.1/" ) ls.login( "admin" , "admin" ) ls.setip( STATIC_IP , "gateway" , 10 , 66 , 66 , 66 ) ls.setip( STATIC_IP , "subnet" , 255 , 255 , 255 , 0 ) if ls.response(): print "Succes" else: print "O_O AIam BAd GUy -^-" ls.logout()Everything was writen in early 2009. I have tested at that days. Now I don't have linksys machine to test it.
Source