Set network type